preValidation property

(Object Function(List<String>, num, String, bool, Options, dynamic, bool, [dynamic])?) preValidation

Hook to preValidate the input. Useful for validating regardless of the definition.

When returning true, the normal validation kicks in, otherwise, it is skipped.

When returning a command object the actions are executed and further validation is stopped. If you want to continue further validation, you need to add the rewritePosition action.

Implementation

_i2.Object Function(
  _i2.List<_i2.String>,
  _i2.num,
  _i2.String,
  _i2.bool,
  _i3.Options,
  _i2.dynamic,
  _i2.bool, [
  _i2.dynamic,
])? get preValidation => (
      _i2.List<_i2.String> p0,
      _i2.num p1,
      _i2.String p2,
      _i2.bool p3,
      _i3.Options p4,
      _i2.dynamic p6,
      _i2.bool p7, [
      _i2.dynamic p5,
    ]) =>
        _i4.callMethod(
          _i4.getProperty(
            this,
            'preValidation',
          ),
          r'call',
          [
            this,
            p0,
            p1,
            p2,
            p3,
            p4,
            p5,
            p6,
            p7,
          ],
        );
void preValidation=(Object value(List<String>, num, String, bool, Options, dynamic, bool, [dynamic])?)

Implementation

set preValidation(
    _i2.Object Function(
      _i2.List<_i2.String>,
      _i2.num,
      _i2.String,
      _i2.bool,
      _i3.Options,
      _i2.dynamic,
      _i2.bool, [
      _i2.dynamic,
    ])? value) {
  _i4.setProperty(
    this,
    'preValidation',
    value == null ? _i6.undefined : _i4.allowInterop(value),
  );
}