defaultScheduler top-level property

Scheduler defaultScheduler

Returns the default scheduler instance to be used.

Implementation

Scheduler get defaultScheduler =>
    _defaultScheduler ?? const CurrentZoneScheduler();
void defaultScheduler= (Scheduler scheduler)

Sets the default scheduler instance to be used.

Implementation

set defaultScheduler(Scheduler scheduler) => _defaultScheduler = scheduler;