widgets/cascade_picker library

Classes

TxCascadePicker<T, V>

Mixins

CascadePickerMixin<T, D, V>

Constants

kLabelKey → const String

Functions

showCascadePicker<T, V>({required BuildContext context, required List<T> source, required ValueMapper<T, String?> labelMapper, required ValueMapper<T, List<T>?> childrenMapper, String? title, T? initialData, V? initialValue, ValueMapper<T, V?>? valueMapper, DataWidgetBuilder<T>? subtitleBuilder, ValueMapper<T, bool>? disabledWhen, PickerItemBuilder<T>? itemBuilder, bool? isScrollControlled, bool? showSearchField, Widget? placeholder, ListTileThemeData? listTileTheme, bool? parentCheckable}) Future<T?>
弹出级联选择器
showMapListCascadePicker<V>({required BuildContext context, required List<Map> source, String? valueKey, String? labelKey, String? idKey, String? pidKey, String? rootId, String? title, Map? initialData, V? initialValue, DataWidgetBuilder<Map>? subtitleBuilder, ValueMapper<Map, bool>? disabledWhen, PickerItemBuilder<Map>? itemBuilder, bool? isScrollControlled, bool? showSearchField, Widget? placeholder, ListTileThemeData? listTileTheme, bool? parentCheckable}) Future<Map?>
弹出数据为 Map 列表类型级联选择器

Typedefs

DataWidgetBuilder<T> = Widget Function(BuildContext context, T data)
ValueMapper<T, V> = V Function(T data)
为给定 T 类型数据 生成 V 类型值的函数的签名。