copySelectionTsvToClipboard method
Copy the current selection (or the active cell) to the clipboard as TSV. Returns the number of lines written.
Implementation
Future<int> copySelectionTsvToClipboard({bool includeHeader = false}) async {
final tsv = selectionAsTsv(includeHeader: includeHeader);
if (tsv.isEmpty) return 0;
await Clipboard.setData(ClipboardData(text: tsv));
return tsv.split('\n').length;
}