toValidationRule method

List toValidationRule()

Transform the FormValidator into a validation rule

Implementation

List toValidationRule() {
  List listData = [data, rules];
  if (message != null) {
    listData.add(message);
  }
  return listData;
}