ZenDisposedScopeException constructor

ZenDisposedScopeException({
  1. required String scopeName,
  2. required String operation,
})

Implementation

ZenDisposedScopeException({
  required String scopeName,
  required String operation,
}) : super(
        'Cannot perform operation on disposed scope',
        context: {
          'Scope': scopeName,
          'Operation': operation,
        },
        suggestion: 'Check if the scope is still active before accessing it',
        docLink: 'https://github.com/sdegenaar/zenify#scopes',
      );