ScheduledEvent class

Creates and starts new periodic event. callback will be executed every given duration of time. Event can be stopped via stop function.

Constructors

ScheduledEvent(Nyxx client, Duration duration, ScheduledEventCallback callback)
Creates and starts new periodic event. callback will be executed every duration of time. Event can be stopped via stop function.

Properties

callback ScheduledEventCallback
Callback which will be run every given period of time
final
client → Nyxx
Nyxx instance
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
stop() → void
Stops ScheduledEvent if running.
toString() String
Returns a string representation of this object.
inherited

Operators

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