handleCopy method Null safety
- TextSelectionDelegate delegate,
- [ClipboardStatusNotifier? clipboardStatus]
Call TextSelectionDelegate.copySelection to copy current selection.
This is called by subclasses when their copy affordance is activated by the user.
Implementation
// TODO(chunhtai): remove optional parameter once migration is done.
// https://github.com/flutter/flutter/issues/99360
void handleCopy(TextSelectionDelegate delegate, [ClipboardStatusNotifier? clipboardStatus]) {
delegate.copySelection(SelectionChangedCause.toolbar);
}