TimetableItem<T> class

A time table item is a single entry in a time table. Required fields:

  • start - DateTime the start time of the item
  • end - DateTime the end time of the item

Optional fields:

  • data - Optional generic payload that can be used by the item builder to render the item card

Caluculated fields:

  • duration - Duration is the difference between start and end provided in the constructor

Constructors

TimetableItem(DateTime start, DateTime end, {T? data})

Properties

data → T?
final
duration Duration
final
end DateTime
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start DateTime
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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