shareWebpage method
分享 - 网页
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,
},
);
}