shareText static method
Implementation
static Future<ShareResult?> shareText(
String text, {
String? subject,
Rect? sharePositionOrigin,
}) async {
try {
return await Share.shareWithResult(text, subject: subject, sharePositionOrigin: sharePositionOrigin);
} catch (e) {
LoggerService.logError('Error sharing text: $e');
return null;
}
}