shareVideoFromUrl method Null safety

Future<void> shareVideoFromUrl(
  1. String url,
  2. String text
)

Implementation

static Future<void> shareVideoFromUrl(String url, String text) async {
  Uint8List? bytes = await download(url);
  if (bytes != null) {
    await shareVideo(bytes, text);
  }
}