setExtra method
- @Deprecated('Use Contexts instead. Additional data is deprecated in favor of structured Contexts and should be avoided when possible')
- String key,
- 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));
}