model<Model extends Pub> static method

Model model<Model extends Pub>()

static: Get the model, the same as getModel

Implementation

static Model model<Model extends Pub>() {
  assert(ifStateModel<Model>(Host.stateModels[Model]));
  debugPrint('Deprecated Pub.model<Model>(): Please use Host.model<>();');
  return Host.stateModels[Model] as Model;
}