CityPicker<T extends IPickerViewData<T>> constructor Null safety

const CityPicker<T extends IPickerViewData<T>>(
  1. {Key? key,
  2. required List<T> dataList,
  3. int? currentProvinceIndex,
  4. int? currentCityIndex,
  5. int? currentCountyIndex,
  6. OnCityPickerSelectChanged<T>? selectChanged}
)

Implementation

const CityPicker({Key? key, required this.dataList, this.currentProvinceIndex, this.currentCityIndex, this.currentCountyIndex, this.selectChanged}) : super(key: key);