ifInheritedModel<Model extends Pub> function

bool ifInheritedModel<Model extends Pub>(
  1. InheritedMediator<Model>? inheritedModel
)

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;
}