shareText method

Future<void> shareText(
  1. String text
)

Implementation

Future<void> shareText(String text) async {
  final handled =
      await DVNativeBridge.require<bool>('share.text', {'text': text});
  if (!handled) {
    throw StateError('Native share binding rejected the request.');
  }
  _lastSharedText = text;
}