CustomStreetAddressField constructor
const
CustomStreetAddressField({
- Key? key,
- String? initialStreet,
- String? initialCity,
- String? initialState,
- String? initialCountry,
- String? initialPostalCode,
- double? initialLatitude,
- double? initialLongitude,
- ValueChanged<
AddressFormData> ? onAddressChanged, - ValueChanged<
LocationResult?> ? onPlaceSelected, - ValueChanged<
Position?> ? onLocationSelected, - String? hintText = 'Search for addresses in India or US...',
- String? googleApiKey,
- bool enableLocationPicker = false,
- bool showAllFields = true,
- Map<
String, String> ? fieldErrors, - ValueChanged<
String> ? onFieldErrorCleared, - bool isLocked = false,
Implementation
const CustomStreetAddressField({
super.key,
this.initialStreet,
this.initialCity,
this.initialState,
this.initialCountry,
this.initialPostalCode,
this.initialLatitude,
this.initialLongitude,
this.onAddressChanged,
this.onPlaceSelected,
this.onLocationSelected,
this.hintText = 'Search for addresses in India or US...',
this.googleApiKey,
this.enableLocationPicker = false,
this.showAllFields = true,
this.fieldErrors,
this.onFieldErrorCleared,
this.isLocked = false,
});