Realtime class
Represents a time duration in a human-readable format.
Constructors
- Realtime({bool today = false, bool tomorrow = false, bool yesterday = false, int days = 0, int hours = 0, int minutes = 0, int seconds = 0, int milliseconds = 0, int microseconds = 0})
-
Constructs a Realtime instance with the specified parameters.
const
- Realtime.fromDateTime(DateTime dateTime)
-
Constructs a Realtime instance from the specified DateTime.
factory
- Realtime.fromDuration(Duration duration)
-
Constructs a Realtime instance from the specified Duration.
factory
Properties
- afterHours → int
-
Gets the duration in hours after the specified time.
no setter
- afterMicroseconds → int
-
Gets the duration in microseconds after the specified time.
no setter
- afterMilliseconds → int
-
Gets the duration in milliseconds after the specified time.
no setter
- afterMinutes → int
-
Gets the duration in minutes after the specified time.
no setter
- afterSeconds → int
-
Gets the duration in seconds after the specified time.
no setter
- days → int
-
Number of days in the duration.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hours → int
-
Number of hours in the duration.
final
- isAfterHourMode → bool
-
Indicates if the duration is after the specified number of hours.
no setter
- isAfterMinuteMode → bool
-
Indicates if the duration is after the specified number of minutes.
no setter
- isAfterSecondMode → bool
-
Indicates if the duration is after the specified number of seconds.
no setter
- isHourMode → bool
-
Indicates if the duration represents hours.
no setter
- isMinuteMode → bool
-
Indicates if the duration represents minutes.
no setter
- isSecondMode → bool
-
Indicates if the duration represents seconds.
no setter
- microseconds → int
-
Number of microseconds in the duration.
final
- milliseconds → int
-
Number of milliseconds in the duration.
final
- minutes → int
-
Number of minutes in the duration.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seconds → int
-
Number of seconds in the duration.
final
- today → bool
-
Indicates if the time is today.
final
- tomorrow → bool
-
Indicates if the time is tomorrow.
final
- yesterday → bool
-
Indicates if the time is yesterday.
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