byNumericCode static method

Country? byNumericCode(
  1. String code
)

Country by ISO 3166-1 numeric code (e.g. '840'). Returns null if not found.

Implementation

static Country? byNumericCode(String code) =>
    _all.firstWhereOrNull((c) => c.numericCode == code);