get<T> static method

T get<T>(
  1. BuildContext context, {
  2. String? tag,
})

will get a type T from DimeScope in widget tree.

Implementation

static T get<T>(BuildContext context, {String? tag}) {
  return scopeOf(context).get(tag: tag);
}