numberOfRowsInComponent method
定义每一列所显示的行数, component 代表列的索引,
Implementation
@override
int numberOfRowsInComponent(int component) {
if (data.isEmpty) {
return 0;
}
if (0 == component) {
return data.length;
} else if (1 == component) {
List fl = data[firstSelectedIndex].children;
return fl.length;
} else {
List<BrnMultiDataPickerEntity> secondMap =
data[firstSelectedIndex].children;
List thirdMap = secondMap[secondSelectedIndex].children;
return thirdMap.length;
}
}