CustomRule constructor

const CustomRule(
  1. String? validator(
    1. String? value
    )
)

Creates a new CustomRule with the given validator function.

Implementation

const CustomRule(this.validator);