byId method
Implementation
T? byId(int id) {
try {
return list.firstWhere((f) => f.id == id);
} catch (e) {
return null;
}
}
T? byId(int id) {
try {
return list.firstWhere((f) => f.id == id);
} catch (e) {
return null;
}
}