ValidatorCustom constructor

ValidatorCustom([
  1. bool valid(
    1. dynamic value
    )?
])

Create Validator can check value by a custom function valid

Implementation

ValidatorCustom([this.valid]);