ColabInputAddress constructor

ColabInputAddress({
  1. Key? key,
  2. FormFieldValidator<ColabAddressFieldValue>? validator,
  3. FormFieldSetter<ColabAddressFieldValue>? onSaved,
  4. required BuildContext context,
  5. required LatLng initialLocation,
  6. required TextEditingController textInputController,
  7. required String hintText,
  8. required String labelText,
  9. String? helperText,
  10. InputDecoration? inputDecoration,
  11. FormFieldSetter<ColabAddressFieldValue>? onChanged,
  12. bool searchInput = false,
  13. required String googleMapsKey,
  14. Set<Marker> markers = _markersValue,
  15. bool initFieldEmpty = false,
})

Implementation

ColabInputAddress({
  super.key,
  super.validator,
  super.onSaved,
  required BuildContext context,
  required this.initialLocation,
  required TextEditingController textInputController,
  required String hintText,
  required String labelText,
  String? helperText,
  InputDecoration? inputDecoration,
  FormFieldSetter<ColabAddressFieldValue>? onChanged,

  bool searchInput = false,
  required String googleMapsKey,
  this.markers = _markersValue,
  bool initFieldEmpty = false,
}) : super(
       initialValue: null,
       builder:
           (state) => _build(
             context,
             state,
             initialLocation,
             textInputController,
             hintText,
             labelText,
             inputDecoration,
             helperText,
             onChanged,
             searchInput,
             googleMapsKey,
             markers,
             initFieldEmpty,
           ),
       autovalidateMode: AutovalidateMode.onUserInteraction,
     );