shareUri method
Share uri.
Implementation
@override
Future<ShareResult> shareUri(
Uri uri, {
Rect? sharePositionOrigin,
}) async {
final params = <String, dynamic>{'uri': uri.toString()};
if (sharePositionOrigin != null) {
params['originX'] = sharePositionOrigin.left;
params['originY'] = sharePositionOrigin.top;
params['originWidth'] = sharePositionOrigin.width;
params['originHeight'] = sharePositionOrigin.height;
}
final result = await channel.invokeMethod<String>('shareUri', params) ??
'dev.fluttercommunity.plus/share/unavailable';
return ShareResult(result, _statusFromResult(result));
}