getEvent method

void getEvent(
  1. void callBack(
    1. String s
    )
)
override

Implementation

void getEvent(void Function(String s) callBack) async {
  Timer(const Duration(seconds: 1), () => callBack('event1'));
  Timer(const Duration(seconds: 2), () => callBack('event2'));
  Timer(const Duration(seconds: 3), () => callBack('event3'));
}