equals<T> static method

ValidatorFunction equals<T>(
  1. T value
)

Gets a validator that requires the control's value to be equals to argument value.

The argument value must not be null.

Implementation

static ValidatorFunction equals<T>(T value) =>
    EqualsValidator<T>(value).validate;