OnSurroundingTextChangedSurroundingInfo constructor

OnSurroundingTextChangedSurroundingInfo({
  1. required String text,
  2. required int focus,
  3. required int anchor,
  4. required int offset,
})

Implementation

OnSurroundingTextChangedSurroundingInfo({
  /// The text around the cursor. This is only a subset of all text in the
  /// input field.
  required String text,

  /// The ending position of the selection. This value indicates caret
  /// position if there is no selection.
  required int focus,

  /// The beginning position of the selection. This value indicates caret
  /// position if there is no selection.
  required int anchor,

  /// The offset position of `text`. Since `text` only includes a subset of
  /// text around the cursor, offset indicates the absolute position of the
  /// first character of `text`.
  required int offset,
}) : _wrapped = $js.OnSurroundingTextChangedSurroundingInfo(
        text: text,
        focus: focus,
        anchor: anchor,
        offset: offset,
      );