MyoroThrottleController class
Class to throttle a function
Executes a callback with run
. If run
is called again before the
set duration has passed, run.callback
will not be executed.
To use this class, just create a variable of it and start calling run
!
Constructors
- MyoroThrottleController.new({Duration duration = kMyoroThrottleDuration})
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
throttle(
Function callback) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited