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

duration Duration
Duration to be awaited after unthrottled run execution.
final
hashCode int
The hash code for this object.
no setterinherited
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
throttle(Function callback) Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited