removeExtra method

  1. @Deprecated('Use Contexts instead. Additional data is deprecated in favor of structured Contexts and should be avoided when possible')
Future<void> removeExtra(
  1. String key
)

Removes an extra from the Scope

Implementation

@Deprecated(
    'Use Contexts instead. Additional data is deprecated in favor of structured Contexts and should be avoided when possible')
Future<void> removeExtra(String key) async {
  _extra.remove(key);
  await _callScopeObservers(
      (scopeObserver) async => await scopeObserver.removeExtra(key));
}