getById static method
Implementation
static WorkoutExercise? getById(String id) {
try {
return defaultExercises.firstWhere((e) => e.id == id);
} catch (_) {
return null;
}
}
static WorkoutExercise? getById(String id) {
try {
return defaultExercises.firstWhere((e) => e.id == id);
} catch (_) {
return null;
}
}