TimeSlot class

Represents a period of time, with a start and an end.

This is typically used to specify the duration of an event, or a possible time slot for an event.

Constructors

TimeSlot({Time? start, Time? end})
Creates a new instance of TimeSlot.
TimeSlot.fromJson(Map<String, dynamic> json)
Creates a new instance of TimeSlot from a JSON object.
factory

Properties

end Time?
The end time of the slot.
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 Time?
The start time of the slot.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this TimeSlot instance to a JSON object.
toString() String
A string representation of this object.
inherited

Operators

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