model<T> method

T model<T>(
  1. Symbol key
)

Implementation

T model<T>(Symbol key) {
  assert(state.mounted, 'State is not mounted');
  return Model.find<T>(state.context, key);
}