copy method

  1. @override
void copy(
  1. ZefyrController controller,
  2. String plainText
)
override

Implementation

@override
void copy(ZefyrController controller, String plainText) async {
  if (!controller.selection.isCollapsed) {
    // ignore: unawaited_futures
    Clipboard.setData(
        ClipboardData(text: controller.selection.textInside(plainText)));
  }
}