debugAssertAllSchedulerVarsUnset function

bool debugAssertAllSchedulerVarsUnset (String reason)

Returns true if none of the scheduler library debug variables have been changed.

This function is used by the test framework to ensure that debug variables haven't been inadvertently changed.

See https://docs.flutter.io/flutter/scheduler/scheduler-library.html for a complete list.

Implementation

bool debugAssertAllSchedulerVarsUnset(String reason) {
  assert(() {
    if (debugPrintBeginFrameBanner ||
        debugPrintEndFrameBanner) {
      throw FlutterError(reason);
    }
    return true;
  }());
  return true;
}