copyStatement method

void copyStatement(
  1. Statement statement, {
  2. bool cut = false,
})

Copy or cut a statement to the clipboard.

Implementation

void copyStatement(Statement statement, {bool cut = false}) {
  state = DartBlockEditorState(
    copiedStatement: statement.copy(),
    isCopiedStatementCut: cut,
  );
}