validateAddress static method

String? validateAddress(
  1. String? value
)

Ensures that a user provided an address, not much beyond that because we rely on google maps autocomplete api This should ensure reasonable input, but this may be subject to change depending on how silly our users get...

Implementation

static String? validateAddress(String? value) {
  if (value == null || value == '') {
    return 'Value cannot be empty';
  }

  return null;
}