CallAggregator class

A class that accumulates function calls and triggers execution when a specified number of calls occur within a given time duration.

Constructors

CallAggregator(Duration _duration, int _requiredCallCount, Function _runnable)
Creates an CallAggregator instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call() → void
Accumulates a function call and triggers execution if the required call count is met.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets the CallAggregator to abandon started call process.
toString() String
A string representation of this object.
inherited

Operators

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