setExtra method

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

Sets an extra to the Scope

Implementation

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