phoneValidation method

String? phoneValidation(
  1. String phone
)

Implementation

String? phoneValidation(String phone) {
  if (phone.isEmpty) {
    return 'Phone can\'t be empty';
  }

  return null;
}