NextRun<T> class

A class that holds information about when its value should run next.

This class is necessary in order to have as many constant constructors as possible, necessitating things that need to store state, like RandomSound instances for example. Using this class, we can decouple the time something next needs to happen to value, from the implementation of value itself.

Implementers

Constructors

NextRun(T value, {int runAfter = 0})
Create an instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
runAfter int
How long until value should be run.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The thing that should be run.
final

Methods

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