getCountryFlagByIndex static method
- required int index,
- Size? size,
- ImageFileFormat? format,
Get the country flag for the specified index.
Parameters
- IN index The country index
- 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? 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(),
);
}