textEdited property

void Function(TextBlock, String, String)? get textEdited

Gets or sets the function that is called after the TextBlock's text has been edited by the TextEditingTool.

  • The first argument is a reference to this TextBlock.
  • The second argument is the previous text, before editing.
  • The third argument is the current text, which is also TextBlock.text.
function(textBlock, previousText, currentText)

The default value is null -- no function is called.

Implementation

void Function(
  _i3.TextBlock,
  _i2.String,
  _i2.String,
)? get textEdited => (
      _i3.TextBlock p0,
      _i2.String p1,
      _i2.String p2,
    ) =>
        _i4.callMethod(
          _i4.getProperty(
            this,
            'textEdited',
          ),
          r'call',
          [
            this,
            p0,
            p1,
            p2,
          ],
        );
set textEdited (void value(TextBlock, String, String)?)

Implementation

set textEdited(
    void Function(
      _i3.TextBlock,
      _i2.String,
      _i2.String,
    )? value) {
  _i4.setProperty(
    this,
    'textEdited',
    value == null ? _i5.undefined : _i4.allowInterop(value),
  );
}