textValidation property

bool Function(TextBlock, String, String)? get textValidation

Gets or sets the predicate that determines whether or not a string of text is valid. If this is non-null, this predicate is called in addition to any TextBlock#textValidation predicate. See #isValidText for more details. The default predicate is null, which is equivalent to simply returning true.

The function, if supplied, must not have any side-effects.

Implementation

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

Implementation

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