shareWebpage method

  1. @override
Future<void> shareWebpage({
  1. required String title,
  2. required String description,
  3. required Uint8List thumbData,
  4. required String webpageUrl,
})
override

分享 - 网页

Implementation

@override
Future<void> shareWebpage({
  required String title,
  required String description,
  required Uint8List thumbData,
  required String webpageUrl,
}) {
  assert(title.length <= 512);
  assert(description.isNotEmpty && description.length <= 1024);
  assert(thumbData.lengthInBytes <= 32 * 1024);
  assert(webpageUrl.length <= 255);
  return methodChannel.invokeMethod<void>(
    'shareWebpage',
    <String, dynamic>{
      'title': title,
      'description': description,
      'thumbData': thumbData,
      'webpageUrl': webpageUrl,
    },
  );
}