selectAll method

void selectAll()

Implementation

void selectAll() {
  if (text.isNotEmpty) {
    selection = TextSelection(
      baseOffset: 0,
      extentOffset: text.length,
    );
  }
}