EWAddressPicker.twoLines constructor

EWAddressPicker.twoLines({
  1. Key? key,
  2. String? validatorAddressLine1(
    1. String?
    )?,
  3. String? validatorAddressLine2(
    1. String?
    )?,
  4. String? validatorZipCode(
    1. String?
    )?,
  5. String? validatorState(
    1. String?
    )?,
  6. String? validatorCountry(
    1. String?
    )?,
  7. required TextEditingController controllerAddressLine1,
  8. required TextEditingController controllerAddressLine2,
  9. required TextEditingController controllerZipCode,
  10. required TextEditingController controllerState,
  11. required TextEditingController controllerCountry,
  12. String? hintTextAddressLine1,
  13. String? hintTextAddressLine2,
  14. String? hintTextZipCode,
  15. String? hintTextState,
  16. String? hintTextCountry,
  17. Widget? prefixIconAddressLine1,
  18. Widget? prefixIconAddressLine2,
  19. Widget? prefixIconZipCode,
  20. Widget? prefixIconState,
  21. Widget? prefixIconCountry,
  22. String? labelTextAddressLine1,
  23. String? labelTextAddressLine2,
  24. String? labelTextZipCode,
  25. String? labelTextState,
  26. String? labelTextCountry,
  27. String? helperTextAddressLine1,
  28. String? helperTextAddressLine2,
  29. String? helperTextZipCode,
  30. String? helperTextState,
  31. String? helperTextCountry,
  32. dynamic onChangedAddressLine1(
    1. String
    )?,
  33. dynamic onChangedAddressLine2(
    1. String
    )?,
  34. dynamic onChangedZipCode(
    1. String
    )?,
  35. dynamic onChangedState(
    1. String
    )?,
  36. dynamic onChangedCountry(
    1. String
    )?,
  37. TextStyle? labelStyle,
  38. TextStyle? textStyleAddressLine1,
  39. TextStyle? textStyleAddressLine2,
  40. TextStyle? textStyleZipCode,
  41. TextStyle? textStyleState,
  42. TextStyle? textStyleCountry,
  43. StrutStyle? strutStyleAddressLine1,
  44. StrutStyle? strutStyleAddressLine2,
  45. StrutStyle? strutStyleZipCode,
  46. StrutStyle? strutStyleState,
  47. StrutStyle? strutStyleCountry,
  48. FocusNode? addressLine1FocusNode,
  49. FocusNode? addressLine2FocusNode,
  50. FocusNode? zipCodeFocusNode,
  51. FocusNode? stateFocusNode,
  52. FocusNode? countryFocusNode,
  53. bool isEnabled = true,
  54. bool readOnly = false,
  55. PreferredSize? appBar,
})

Implementation

factory EWAddressPicker.twoLines({
  Key? key,
  String? Function(String?)? validatorAddressLine1,
  String? Function(String?)? validatorAddressLine2,
  String? Function(String?)? validatorZipCode,
  String? Function(String?)? validatorState,
  String? Function(String?)? validatorCountry,
  required TextEditingController controllerAddressLine1,
  required TextEditingController controllerAddressLine2,
  required TextEditingController controllerZipCode,
  required TextEditingController controllerState,
  required TextEditingController controllerCountry,
  String? hintTextAddressLine1,
  String? hintTextAddressLine2,
  String? hintTextZipCode,
  String? hintTextState,
  String? hintTextCountry,
  Widget? prefixIconAddressLine1,
  Widget? prefixIconAddressLine2,
  Widget? prefixIconZipCode,
  Widget? prefixIconState,
  Widget? prefixIconCountry,
  String? labelTextAddressLine1,
  String? labelTextAddressLine2,
  String? labelTextZipCode,
  String? labelTextState,
  String? labelTextCountry,
  String? helperTextAddressLine1,
  String? helperTextAddressLine2,
  String? helperTextZipCode,
  String? helperTextState,
  String? helperTextCountry,
  Function(String)? onChangedAddressLine1,
  Function(String)? onChangedAddressLine2,
  Function(String)? onChangedZipCode,
  Function(String)? onChangedState,
  Function(String)? onChangedCountry,
  TextStyle? labelStyle,
  TextStyle? textStyleAddressLine1,
  TextStyle? textStyleAddressLine2,
  TextStyle? textStyleZipCode,
  TextStyle? textStyleState,
  TextStyle? textStyleCountry,
  StrutStyle? strutStyleAddressLine1,
  StrutStyle? strutStyleAddressLine2,
  StrutStyle? strutStyleZipCode,
  StrutStyle? strutStyleState,
  StrutStyle? strutStyleCountry,
  FocusNode? addressLine1FocusNode,
  FocusNode? addressLine2FocusNode,
  FocusNode? zipCodeFocusNode,
  FocusNode? stateFocusNode,
  FocusNode? countryFocusNode,
  bool isEnabled = true,
  bool readOnly = false,
  final PreferredSize? appBar,
}) =>
    EWAddressPicker(
      key: key,
      appBar: appBar,
      addressPickerType: const TwoLines(),
      controllerAddressLine1: controllerAddressLine1,
      controllerAddressLine2: controllerAddressLine2,
      hintTextAddressLine1: hintTextAddressLine1,
      hintTextAddressLine2: hintTextAddressLine2,
      prefixIconAddressLine1: prefixIconAddressLine1,
      prefixIconAddressLine2: prefixIconAddressLine2,
      labelTextAddressLine1: labelTextAddressLine1,
      labelTextAddressLine2: labelTextAddressLine2,
      helperTextAddressLine1: helperTextAddressLine1,
      helperTextAddressLine2: helperTextAddressLine2,
      onChangedAddressLine1: onChangedAddressLine1,
      onChangedAddressLine2: onChangedAddressLine2,
      addressLine1FocusNode: addressLine1FocusNode,
      // onTapAddressLine1: onTapAddressLine1,
    );