flagsCode constant

List<String> const flagsCode

FlagsCode.

You can using Flag.flagsCode.contains('YOUR_FLAG_CODE'.toLowerCase()) to check if the flag code included in the list. Example:

if (Flag.flagsCode.contains('AF'.toLowerCase()))
           Flag(
             'af',
             height: 10,
             width: 100,
             fit: BoxFit.fill,
           ),

Implementation

static const List<String> flagsCode = baseFlagsCode;