setContexts method

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

add an entry to the Scope's contexts

Implementation

void setContexts(String key, dynamic value) {
  _contexts[key] = (value is num || value is bool || value is String)
      ? {'value': value}
      : value;
}