shareFile static method

Future<String> shareFile({
  1. required String filePath,
  2. required String mimeType,
})

Shares a single file to social media or system share UI.

filePath is the path to the file to share (required). mimeType specifies the MIME type of the file (e.g., 'image/png').

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> shareFile({
  required String filePath,
  required String mimeType,
}) {
  throw UnimplementedError('shareFile() has not been implemented.');
}