byNameOrNull method
Implementation
T? byNameOrNull(String? name) {
for (final value in this) {
if (value.name == name) {
return value;
}
}
return null;
}
T? byNameOrNull(String? name) {
for (final value in this) {
if (value.name == name) {
return value;
}
}
return null;
}