getManagedTimer abstract method

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

Creates a Timer instance that will be cancelled if active upon disposal.

Implementation

Timer getManagedTimer(Duration duration, void callback());