typedef RangeValidatorFunction = String? Function(String, {required double min, required double max});