RandomTask class

A task which will happen every getDuration.

Instances of RandomTask are used by the RandomTasks widget.

Constructors

RandomTask({required Duration getDuration(), required VoidCallback onTick})
Create an instance.
const

Properties

getDuration → Duration Function()
The function to call to get the duration.
final
hashCode → int
Returns the hash code.
no setteroverride
onTick → VoidCallback
The function to call every getDuration.
final
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
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
Provides equality.
override