copyCellsToClipboard method

Future<bool> copyCellsToClipboard(
  1. Iterable<CellRef> cells
)

Copy a cell rectangle to the system clipboard as TSV.

Implementation

Future<bool> copyCellsToClipboard(Iterable<CellRef> cells) async {
  final tsv = cellsAsTsv(cells);
  if (tsv.isEmpty) return false;
  await Clipboard.setData(ClipboardData(text: tsv));
  return true;
}