byNameOrNull method

T? byNameOrNull(
  1. String? name
)

Implementation

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