byID<T> static method

DataSource<T>? byID<T>(
  1. String? id
)
override

Implementation

static DataSource<T>? byID<T>(String? id) {
  if (id == null) return null;
  var instance = instances[id];
  instance ??= DataRepository.byID(id);
  return instance as DataSource<T>?;
}