byID<T> static method
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>?;
}
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>?;
}