setContexts method

Future<void> setContexts(
  1. String key,
  2. dynamic value
)

add an entry to the Scope's contexts

Implementation

Future<void> setContexts(String key, dynamic value) async {
  _setContextsSync(key, value);
  await _callScopeObservers(
      (scopeObserver) async => await scopeObserver.setContexts(key, value));
}