shareText static method

Future<String> shareText({
  1. required String text,
})

Shares a text message to social media or system share UI.

text is the main content to share (required).

Returns a Future that completes with a string indicating the result: 'success' or an error message. Platform-specific implementations must override this method.

Throws UnimplementedError if not overridden.

Implementation

static Future<String> shareText({required String text}) {
  throw UnimplementedError('shareText() has not been implemented.');
}