CustomStreetAddressField constructor

const CustomStreetAddressField({
  1. Key? key,
  2. String? initialStreet,
  3. String? initialCity,
  4. String? initialState,
  5. String? initialCountry,
  6. String? initialPostalCode,
  7. double? initialLatitude,
  8. double? initialLongitude,
  9. ValueChanged<AddressFormData>? onAddressChanged,
  10. ValueChanged<LocationResult?>? onPlaceSelected,
  11. ValueChanged<Position?>? onLocationSelected,
  12. String? hintText = 'Search for addresses in India or US...',
  13. String? googleApiKey,
  14. bool enableLocationPicker = false,
  15. bool showAllFields = true,
  16. Map<String, String>? fieldErrors,
  17. ValueChanged<String>? onFieldErrorCleared,
  18. 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,
});