TinCanDuration class
Constructors
- TinCanDuration.fromDateTime({String? date, String? time})
- TinCanDuration.fromParts({String? years, String? months, String? days, String? hours, String? minutes, String? seconds})
- TinCanDuration.fromWeeks(String? weeks)
Properties
- date → String?
-
final
- days → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hours → String?
-
final
- minutes → String?
-
final
- months → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seconds → String?
-
final
- time → String?
-
final
- weeks → String?
-
final
- years → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromDiff(
DateTime? start, DateTime? end) → TinCanDuration? -
fromDuration(
Duration? duration) → TinCanDuration? -
fromString(
String? duration) → TinCanDuration?