shareImage static method

Future<void> shareImage(
  1. Uint8List image,
  2. String? text, {
  3. String? title,
  4. String? name,
})

Implementation

static Future<void> shareImage(
  Uint8List image,
  String? text, {
  String? title,
  String? name,
}) async {
  await ModernFormShareHelper.file(
    title ?? '',
    name ?? 'image.png',
    image,
    'image/png',
    text: text ?? "",
  );
}