AreaPicker constructor
AreaPicker({
- Key? key,
- String? province,
- String? city,
- String? district,
- TextStyle? contentStyle,
- bool enableCity = true,
- bool enableDistrict = true,
- PickerOptions<
List< ? options = const PickerOptions<List<String>>(),String> > - PickerWheelOptions? wheelOptions,
- AreaPickerChanged? onChanged,
- double height = kPickerDefaultHeight,
- 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);