validatePassword method

String? validatePassword(
  1. String? value
)

Implementation

String? validatePassword(String? value) {
  if (value!.length < 8) {
    return "Minimum 8 character required for Password";
  } else {
    return null;
  }
}