requiredMin static method

Map<String, dynamic>? requiredMin(
  1. AbstractControl control
)

Validates that control's value must be true

Implementation

static Map<String, dynamic>? requiredMin(
  AbstractControl<dynamic> control,
) {
  return control.value == null ||
          control.value.toString().length >= 2 ||
          control.value.toString().trim().isEmpty
      ? null
      : {'required': true};
}