valueSelection property

(num, num)? get valueSelection

Selection range in the input value. Defined as tuple of two number where the first is the inclusive start index and the second the exclusive end index. When undefined the whole pre-filled value will be selected, when empty (start equals end) only the cursor will be set, otherwise the defined range will be selected.

This property does not get updated when the user types or makes a selection, but it can be updated by the extension.

Implementation

(
  _i2.num,
  _i2.num,
)? get valueSelection => _i5.getProperty(
      this,
      'valueSelection',
    );
set valueSelection ((num, num)? value)

Implementation

set valueSelection(
    (
      _i2.num,
      _i2.num,
    )? value) {
  _i5.setProperty(
    this,
    'valueSelection',
    value == null
        ? _i6.undefined
        : [
            value.$1,
            value.$2,
          ],
  );
}