edit method

  1. @override
Future<bool> edit(
  1. String uri,
  2. String mimeType, {
  3. String title = 'Edit',
})
override

This Method sends the selected Image's uri to the native thread. from the Flutter thread to send results to apps which can handle ACTION_EDIT Intent of mimeType images/*.

Implementation

@override
Future<bool> edit(
  String uri,
  String mimeType, {
  String title = 'Edit',
}) async {
  try {
    final result = await methodChannel.invokeMethod('edit', <String, dynamic>{
      'uri': uri,
      'mimeType': mimeType,
      'title': title,
    });
    if (result != null) return result as bool;
  } on PlatformException catch (e) {
    debugPrint(e.message);
  }
  return false;
}