StreamDurationConfig class
StreamDurationConfig class contains configuration options for StreamDuration, which is a class that emits a stream of Duration values.
Constructors
- StreamDurationConfig({bool autoPlay = true, bool isCountUp = false, Duration periodic = const Duration(seconds: 1), CountDownConfig? countDownConfig, CountUpConfig? countUpConfig, Function? onDone})
-
StreamDurationConfig class contains configuration options for
StreamDuration, which is a class that emits a stream of Duration values.
const
Properties
- autoPlay → bool
-
A boolean value that indicates whether to automatically start emitting
the Duration stream upon initialization of StreamDuration.
The default value is true.
final
- countDownConfig → CountDownConfig?
-
CountDownConfig
class contains configuration options for count down durations. this property required if isCountUp is falsefinal - countUpConfig → CountUpConfig?
-
CountUpConfig
class contains configuration options for count up durations. this property required if isCountUp is truefinal - hashCode → int
-
The hash code for this object.
no setteroverride
- isCountUp → bool
-
A boolean value that indicates whether the duration should increment or
decrement.
If true, the duration will increment, otherwise it will decrement.
The default value is false.
final
- isDone → bool
-
no setter
- onDone → Function?
-
When duration is count down duration is equal remainingDuration
onDone will called
final
- periodic → Duration
-
A Duration value that indicates the interval at which the Duration stream
should emit values.
The default value is 1 second (Duration(seconds: 1)).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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 ==(
covariant StreamDurationConfig other) → bool -
The equality operator.
override