onShare method

void onShare(
  1. String searchTerm,
  2. {String? sentence = ''}
)

Action to perform upon using the Share context option.

Implementation

void onShare(String searchTerm, {String? sentence = ''}) async {
  Share.share(searchTerm);
}