requiredMin static method
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};
}