Time class

Details about the time, with the following elements:

  • value the time specified as a DateTime object.
  • text the time specified as a String. The time is displayed in the time zone of the transit stop.
  • timeZone contains the time zone of this station. The value is the name of the time zone as defined in the IANA Time Zone Database, e.g. "America/New_York".

Constructors

Time({String? text, String? timeZone, DateTime? value})
const
Time.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
The time specified as a String. The time is displayed in the time zone of the transit stop.
final
timeZone String?
Contains the time zone of this station. The value is the name of the time zone as defined in the IANA Time Zone Database, e.g. "America/New_York".
final
value DateTime?
The time specified as a DateTime object.
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