setTag method

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

Sets a tag to the Scope

Implementation

Future<void> setTag(String key, String value) async {
  _setTagSync(key, value);
  await _callScopeObservers(
      (scopeObserver) async => await scopeObserver.setTag(key, value));
}