vsync property Null safety

void Function(void task()) vsync

A function that controls the refresh rate of providers.

Defaults to refreshing providers at the end of the next event-loop.

Implementation

void Function(void Function() task) get vsync {
  return vsyncOverride ?? _defaultVsync;
}