RandomTask class

A task which will happen every getDuration.

Instances of RandomTask are used by the RandomTasks widget.

Constructors

RandomTask.new({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
The hash code for this object.
no setterinherited
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
The equality operator.
inherited