ifInheritedModel<Model extends Pub> function
Implementation
bool ifInheritedModel<Model extends Pub>(
InheritedMediator<Model>? inheritedModel) {
if (inheritedModel == null) {
throw FlutterError(
'Could not find an ancestor of InheritedMediator<$Model>, check if <$Model> is correct.');
}
return true;
}