findModelById method

Model findModelById(
  1. String modelId
)

Implementation

Model findModelById(String modelId) {
  final Model? model = tryToFindModelById(modelId);
  if (model == null) {
    notFoundModelError(modelId);
  }
  return model;
}