flagUri property

String flagUri

Uri of this CountryCode located at package's directory to supply at Image widget if you're going to get the raw flag image.

Don't forget to use the flagImagePackage to prevent OS not found error because it is inside the package's bundle.

Example

     Image.asset(
       fit: fit,
       width: width,
       countryCode.flagUri,
       alignment: alignment,
       package: countryCode.flagImagePackage,
     );

Implementation

String get flagUri => 'assets/flags/${code.toLowerCase()}.png';