debugAssertNotDisposed static method
Implementation
static bool debugAssertNotDisposed(ChannelController controller) {
assert(() {
if (controller.disposed) {
throw FlutterError(
'A ${controller.runtimeType} was used after being disposed.\n'
'Once the ${controller.runtimeType} has been disposed, it '
'can no longer be used.',
);
}
return true;
}());
return true;
}