createWithPath method

Future<UIImage> createWithPath(
  1. String resource,
  2. String type,
  3. String fileName
)

Implementation

static Future<UIImage> createWithPath(
  String resource,
  String type,
  String fileName,
) async {
  final result = await kMethodChannel.invokeMethod<Ref>(
    'UIImage::createWithPath',
    {
      'resource': resource,
      'type': type,
      'fileName': fileName,
    },
  );
  return UIImage()..refId = result.refId;
}