longitude static method
FormFieldValidator that requires the field's value to be a valid longitude.
Parameters:
errorText
The error message when the longitude is invalid.checkNullOrEmpty
Whether to check for null or empty values.
Implementation
static FormFieldValidator<String> longitude({
String? errorText,
bool checkNullOrEmpty = true,
}) => LongitudeValidator(
errorText: errorText,
checkNullOrEmpty: checkNullOrEmpty,
).validate;