bool ifModelTypeCorrect(Type model, String fnstr) { if (model is Pub) { throw FlutterError('$fnstr: Please specify the model type, <$model>'); } return true; }