of<T> static method

T of<T>(
  1. BuildContext context,
  2. Symbol key
)

Find and listen to data changes of the data with the given type from the context.

  • T The type of the data.
  • context The build context.
  • key The data key.

Implementation

static T of<T>(BuildContext context, Symbol key) {
  return ofProperty<T>(context, key).value;
}