of static method

DataStore of(
  1. BuildContext context,
  2. dynamic key
)

Implementation

static DataStore of(BuildContext context, key) {
  final store =
      InheritedModel.inheritFrom<InheritedStore>(context, aspect: key)!;
  store.setKey(key);
  return store;
}