CalendarEvent class

Inheritance
Implemented types

Constructors

CalendarEvent({required int id, required int portalId, DateTime? start, DateTime? end, required bool allDay, String? title, String? place, String? content, String? ownerName, String? creatorName})
const
CalendarEvent.fromJson(Map<String, dynamic> json, {ValueSerializer? serializer})
factory

Properties

allDay bool
Whether this is an all-day event.
final
content String?
Event content / details.
final
creatorName String?
Creator name (e.g., "教務處").
final
end DateTime?
Event end time.
final
hashCode int
The hash code for this object.
no setteroverride
id int
Auto-incrementing primary key.
final
ownerName String?
Owner name (e.g., "學校行事曆").
final
place String?
Event location.
final
portalId int
Unique event ID from NTUT Portal.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start DateTime?
Event start time.
final
title String?
Event title / description.
final

Methods

copyWith({int? id, int? portalId, Value<DateTime?> start = const Value.absent(), Value<DateTime?> end = const Value.absent(), bool? allDay, Value<String?> title = const Value.absent(), Value<String?> place = const Value.absent(), Value<String?> content = const Value.absent(), Value<String?> ownerName = const Value.absent(), Value<String?> creatorName = const Value.absent()}) CalendarEvent
copyWithCompanion(CalendarEventsCompanion data) CalendarEvent
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toColumns(bool nullToAbsent) Map<String, Expression<Object>>
Converts this object into a map of column names to expressions to insert or update.
override
toCompanion(bool nullToAbsent) CalendarEventsCompanion
toJson({ValueSerializer? serializer}) Map<String, dynamic>
Converts this object into a representation that can be encoded with json. The serializer can be used to configure how individual values will be encoded. By default, DriftRuntimeOptions.defaultSerializer will be used. See ValueSerializer.defaults for details.
override
toJsonString({ValueSerializer? serializer}) String
Converts this object into a json representation. The serializer can be used to configure how individual values will be encoded. By default, DriftRuntimeOptions.defaultSerializer will be used. See ValueSerializer.defaults for details.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override