shareText method Null safety

Future<void> shareText(
  1. String? text,
  2. {String? title}
)

Implementation

static Future<void> shareText(String? text, {String? title}) async {
  if (kIsWeb) {
    await Clipboard.setData(ClipboardData(text: text));
    showFlushBar(value: true, textTrue: "Texto copiado");
  } else {
    await ModernFormShareHelper.text(text ?? "", subject: title);
  }
}