getCountryFlagByIndex static method

Uint8List? getCountryFlagByIndex({
  1. required int index,
  2. Size? size,
  3. ImageFileFormat? format,
})

Get the country flag for the specified index.

Parameters

Returns

  • Country flag image

Throws

  • An exception if it fails.

Implementation

static Uint8List? getCountryFlagByIndex({
  required final int index,
  final Size? size,
  final ImageFileFormat? format,
}) {
  return GemKitPlatform.instance.callGetImage(
    0,
    'MapDetailsgetCountryIcon',
    size?.width.toInt() ?? -1,
    size?.height.toInt() ?? -1,
    format?.id ?? -1,
    arg: index.toString(),
  );
}