createUIImage function

Future<UIImage> createUIImage(
  1. Uint8List bitmapBytes
)

Implementation

Future<UIImage> createUIImage(Uint8List bitmapBytes) async {
  final refId = await kMethodChannel.invokeMethod(
      'PlatformFactory::createUIImage', {'bitmapBytes': bitmapBytes});
  return UIImage()
    ..refId = refId
    ..tag = 'platform';
}