byFlag static method

Country? byFlag(
  1. String flag
)

Country by flag emoji (e.g. '🇺🇸'). Returns null if not found.

Implementation

static Country? byFlag(String flag) =>
    _all.firstWhereOrNull((c) => c.flagIcon == flag);