validEmail static method

String? validEmail({
  1. String? value,
})

Implementation

static String? validEmail({String? value}) {
  if (value!.isEmpty) {
    return 'Please Enter your Email ID';
  } else if (!value.isEmail) {
    return 'Please Enter valid Email ID';
  }
  return null;
}