Time class Null safety

A time on a day.

Follows the conventions in the DartTime class, but only uses the Time part in a 24 hour time format.

Used in a RecurrentScheduledTrigger and RandomRecurrentTrigger.

Inheritance
Annotations

Constructors

Time({int hour = 0, int minute = 0, int second = 0})
Time.fromJson(Map<String, dynamic> json)
factory
Time.now()
factory

Properties

$type String?
The runtime class name (type) of this object. Used for deserialization from JSON objects.
read / write, inherited
fromJsonFunction Function
The function which can convert a JSON string to an object of this type.
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
hour int
24 hour format.
read / write
jsonType String
Return the $type to be used for JSON serialization of this class. Default is runtimeType. Only specify this if you need another type.
read-only, inherited
minute int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
second int
read / write

Methods

difference(Time other) Duration
Returns a Duration with the difference when subtracting other from this. [...]
isAfter(Time other) bool
Returns true if this occurs after other. [...]
isBefore(Time other) bool
Returns true if this occurs before other. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Return a JSON encoding of this object.
override
toString() String
A string representation of this object. [...]
override

Operators

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