byCode static method

VoCountry? byCode(
  1. String code
)

Implementation

static VoCountry? byCode(String code) {
  final upper = code.toUpperCase();
  return all.where((c) => c.code == upper).firstOrNull;
}