TimerM<T> class

Properties

duration Duration
final
hashCode int
The hash code for this object.
no setterinherited
log String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
final

Methods

asyncFlatMap<Z>(Future<TimerM<Z>> f(T value)) Future<TimerM<Z>>
Async version of the flatMap
asyncMap<Z>(Future<Z> f(T value)) Future<TimerM<Z>>
Async version of the map
asyncMapTiming<Z>(String description, Future<Z> f(T value)) Future<TimerM<Z>>
Async version of the mapTiming
flatMap<Z>(TimerM<Z> f(T value)) TimerM<Z>
Takes a single function that takes a value of type T and returns an instance of the TimerM by composing its result with a current instance
map<Z>(Z f(T value)) TimerM<Z>
Takes a function that returns a regular value and returns an instance of the TimerM by using the identity function
mapTiming<Z>(String description, Z f(T value)) TimerM<Z>
Takes a function that returns a regular value and returns an instance of the TimerM by using the run function
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

identity<T>(T value) TimerM<T>
run<T>(String description, T fn()) TimerM<T>
Times a given function with description
runAsync<T>(String description, Future<T> fn()) Future<TimerM<T>>
Times a given async function with description