onBeforePaste property

(String Function(String, Options)?) onBeforePaste

This callback allows for preprocessing the pasted value before actually handling the value for masking. This can be useful for stripping away some characters before processing. You can also disable pasting a value by returning false in the onBeforePaste call.

Implementation

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

Implementation

set onBeforePaste(
    _i2.String Function(
      _i2.String,
      _i3.Options,
    )? value) {
  _i4.setProperty(
    this,
    'onBeforePaste',
    value == null ? _i6.undefined : _i4.allowInterop(value),
  );
}