Duration class

Constructors

Duration({double? hours, double? minutes, int? seconds})
Returns a new Duration instance.

Properties

hashCode int
The hash code for this object.
no setteroverride
hours double?
getter/setter pair
minutes double?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seconds int?
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(Map<String, dynamic>? json) Duration?
Returns a new Duration instance and imports its values from json if it's non-null, null if json is null.
listFromJson(List? json) List<Duration>
mapFromJson(Map<String, dynamic>? json) Map<String, Duration>
mapListFromJson(Map<String, dynamic>? json) Map<String, List<Duration>>