DebouncerState class
An immutable snapshot of a debouncer's state.
Constructors
- DebouncerState.new({required bool isRunning, required bool isDisposed, required int executionCount, DateTime? lastExecutionTime, Duration? remainingTime, Duration? remainingMaxWait, bool isPaused = false})
-
Constructs a new DebouncerState.
const
Properties
- executionCount → int
-
Total number of times the debounced action has executed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Whether the debouncer has been disposed.
final
- isPaused → bool
-
Whether the debouncer is currently paused.
final
- isRunning → bool
-
Whether a debounced action is currently scheduled.
final
- lastExecutionTime → DateTime?
-
The timestamp of the last execution.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- remainingMaxWait → Duration?
-
Time remaining until the maximum wait threshold forces execution.
final
- remainingTime → Duration?
-
Time remaining until the next scheduled execution.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited
Methods
-
copyWith(
{bool? isRunning, bool? isDisposed, int? executionCount, DateTime? lastExecutionTime, Duration? remainingTime, Duration? remainingMaxWait, bool? isPaused}) → DebouncerState - Creates a copy of this state with optional field updates.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String - A string representation of this object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited