createTimer abstract method Null safety

Timer createTimer(
  1. Duration duration,
  2. void callback(
      )
    )

    Creates a Timer where the callback is executed in this zone.

    Implementation

    Timer createTimer(Duration duration, void Function() callback);