shareText method

Future<bool> shareText(
  1. String text, {
  2. String? subject,
})

Opens the platform share sheet with text and an optional subject.

Implementation

Future<bool> shareText(String text, {String? subject}) {
  if (text.trim().isEmpty) {
    throw ArgumentError.value(text, 'text', 'Text cannot be empty.');
  }
  return NexoraSdkPlatform.instance.shareText(text, subject: subject);
}