share method

  1. @override
Future<bool> share(
  1. Uint8List bytes,
  2. int width,
  3. int height, {
  4. String title = "",
})
override

Share photo, on Android, it will invoke shared Intent, on iOS it will invoke UIActivityViewController

bytes image data width width of save image height height of save image devicePixelRatio device pixel ratio title title of the save image return true if successful otherwise false

Implementation

@override
Future<bool> share(
  Uint8List bytes,
  int width,
  int height, {
  String title = "",
}) =>
    _invokeMethod<bool>(method: Functions.sharePhoto, arguments: {
      Arguments.data: bytes,
      Arguments.width: width,
      Arguments.height: height,
      Arguments.title: title
    });