of method

T of(
  1. BuildContext context
)

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

T of(BuildContext context) {
  return MultiModel.of<T>(context, key);
}