scheduleRepaint method Null safety

void scheduleRepaint()
inherited

Implementation

void scheduleRepaint() {
  if (_frameCallbackId != -1) {
    return;
  }
  _frameCallbackId =
      SchedulerBinding.instance?.scheduleFrameCallback(_frameCallback) ?? -1;
}