bool ifStateModel<Model extends Pub>(Pub? model) { if (model == null) throw FlutterError('Host.model<$Model> not exists'); return true; }