debugAssertNoPendingPerformanceModeRequests method
- String reason
Asserts that there are no pending performance mode requests in debug mode.
Throws a FlutterError if there are pending performance mode requests, as this indicates a potential memory leak.
Implementation
bool debugAssertNoPendingPerformanceModeRequests(String reason) {
assert(() {
if (_performanceMode != null) {
throw FlutterError(reason);
}
return true;
}());
return true;
}