run abstract method

FutureOr<void> run()

Executes the task encapsulated by this instance.

Override this method with the logic that should be performed when the runnable is triggered.

Example:

class MyJob implements Runnable {
  @override
  FutureOr<void> run() {
    print("Job started");
  }
}

Implementation

FutureOr<void> run();