findModelWithCustomKey<T> method

T findModelWithCustomKey<T>(
  1. String key
)
inherited

Same as findId

Implementation

T findModelWithCustomKey<T>(String key) {
  final result = models[key] as T;
  if(result == null) throw AFException("No model defined for $key");
  return result;
}