modelOf static method

dynamic modelOf(
  1. Type type
)

Implementation

static modelOf(Type type) {
  if (_instances.containsKey(type)) {
    return _instances[type];
  } else {
    throw Exception("model if type: $type is null");
  }
}