StreamDuration class
Constructors
- StreamDuration({required StreamDurationConfig config})
Properties
- config → StreamDurationConfig
-
Duration start of count down
MaxDuration when countUp is true and
infinity
andcountUpAtDuration
is falsefinal -
durationLeft
→ Stream<
Duration> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCountUp → bool
-
no setter
- isDone → bool
-
no setter
- remainingDuration → Duration
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
Duration duration) → void -
change(
Duration duration) → void -
correct(
Duration duration) → void -
If you need override current duration
add or subtract
_durationLeft
with other duration & countUp is true will automate add_durationLeft
& countUp is fale will automate subtract_durationLeft
-
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void -
play(
) → void -
resume(
) → void -
subtract(
Duration duration) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited