byID<T> static method

DataHandler<T>? byID<T>(
  1. String? id
)

Implementation

static DataHandler<T>? byID<T>(String? id) {
  if (id == null) return null;

  var instance = DataRepository.byID(id) as DataHandler<T>?;
  if (instance != null) return instance;

  instance = DataSource.byID(id) as DataHandler<T>?;
  if (instance != null) return instance;

  instance = DataReceiver.byID(id) as DataHandler<T>?;
  return instance;
}