getCountryFlag static method

Uint8List? getCountryFlag({
  1. required String countryCode,
  2. Size? size,
  3. ImageFileFormat? format,
})

Get the country flag for the isoCode.

Parameters

  • IN countryCode ISO 3166-1 alpha-3 country code
  • IN size Size of the image
  • IN format ImageFileFormat of the image.

Returns

  • Country flag image

Throws

  • An exception if it fails.

Implementation

static Uint8List? getCountryFlag({
  required final String countryCode,
  final Size? size,
  final ImageFileFormat? format,
}) {
  return GemKitPlatform.instance.callGetImage(
    0,
    'MapDetailsgetCountryFlag',
    size?.width.toInt() ?? -1,
    size?.height.toInt() ?? -1,
    format?.id ?? -1,
    arg: countryCode,
  );
}