shareImage method
分享 - 图片
Implementation
@override
Future<void> shareImage({
required int scene,
required Uri imageUri,
String? appName,
int extInt = TencentQZoneFlag.kDefault,
}) {
assert(scene == TencentScene.kScene_QQ);
assert(imageUri.isScheme('file'));
return methodChannel.invokeMethod<void>(
'shareImage',
<String, dynamic>{
'scene': scene,
'imageUri': imageUri.toString(),
if (appName?.isNotEmpty ?? false) 'appName': appName,
'extInt': extInt,
},
);
}