debugAssertNotDisposed static method

bool debugAssertNotDisposed(
  1. FChangeNotifier notifier
)

Implementation

static bool debugAssertNotDisposed(FChangeNotifier notifier) {
  assert(() {
    if (notifier._debugDisposed) {
      throw Exception(
        'A ${notifier.runtimeType} was used after being disposed.\n'
        'Once you have called dispose() on a ${notifier.runtimeType}, it '
        'can no longer be used.',
      );
    }
    return true;
  }());
  return true;
}