onBeforeWrite property

(CommandObject Function(KeyboardEvent, List<String>, num, Options)?) onBeforeWrite

Executes before writing to the masked element. Use this to do some extra processing of the input. This can be useful when implementing an alias, ex. decimal alias, autofill the digits when leaving the inputfield.

Implementation

_i3.CommandObject Function(
  _i5.KeyboardEvent,
  _i2.List<_i2.String>,
  _i2.num,
  _i3.Options,
)? get onBeforeWrite => (
      _i5.KeyboardEvent p0,
      _i2.List<_i2.String> p1,
      _i2.num p2,
      _i3.Options p3,
    ) =>
        _i4.callMethod(
          _i4.getProperty(
            this,
            'onBeforeWrite',
          ),
          r'call',
          [
            this,
            p0,
            p1,
            p2,
            p3,
          ],
        );
void onBeforeWrite=(CommandObject value(KeyboardEvent, List<String>, num, Options)?)

Implementation

set onBeforeWrite(
    _i3.CommandObject Function(
      _i5.KeyboardEvent,
      _i2.List<_i2.String>,
      _i2.num,
      _i3.Options,
    )? value) {
  _i4.setProperty(
    this,
    'onBeforeWrite',
    value == null ? _i6.undefined : _i4.allowInterop(value),
  );
}