fetchModel static method

Future<Model?> fetchModel(
  1. ModelHandler handler,
  2. dynamic id,
  3. List<Property> properties, {
  4. Map<String, dynamic>? user_data,
})

Implementation

static Future<Model?> fetchModel (
    ModelHandler handler,
    dynamic id,
    List<Property> properties,
    {
      Map<String, dynamic>? user_data,
    }
) async {
  final m = getOrNewModel(handler, id);
  await m.fetch(properties, user_data);
  return m;
}