description method

  1. @override
String description()
override

A human readable description of the action.

Implementation

@override
String description() {
  if (text != null) {
    return 'Press on "$text"';
  } else if (offset != null) {
    return 'Press on [${offset!.first}, ${offset!.last}]';
  }
  throw UnsupportedError('PressOn must have either text or offset');
}