backspace method

  1. @override
bool backspace({
  1. int length = 1,
})
override

length want to delete char count. If there is a selection, just delete selection and ignore length

Implementation

@override
bool backspace({int length = 1}) {
  final didHandle = _candidate?.backspace() ?? false;
  if (!didHandle) {
    return super.backspace(length: length);
  } else {
    return didHandle;
  }
}