AreaPicker constructor

AreaPicker({
  1. Key? key,
  2. String? province,
  3. String? city,
  4. String? district,
  5. TextStyle? contentStyle,
  6. bool enableCity = true,
  7. bool enableDistrict = true,
  8. PickerOptions<List<String>>? options = const PickerOptions<List<String>>(),
  9. PickerWheelOptions? wheelOptions,
  10. AreaPickerChanged? onChanged,
  11. double height = kPickerDefaultHeight,
  12. double width = double.infinity,
})

Implementation

AreaPicker({
  super.key,
  this.province,
  this.city,
  this.district,
  this.contentStyle,
  this.enableCity = true,
  this.enableDistrict = true,
  super.options = const PickerOptions<List<String>>(),
  PickerWheelOptions? wheelOptions,
  this.onChanged,
  this.height = kPickerDefaultHeight,
  this.width = double.infinity,
})  : assert(enableDistrict == enableCity || enableCity,
          'To enable district, city must be enabled first'),
      super(wheelOptions: wheelOptions ?? GlobalOptions().pickerWheelOptions);