TSelectionEntity class

Constructors

TSelectionEntity({String? key, String? value, String? defaultValue, String title = '', String? subTitle, List<TSelectionEntity> children = const [], bool isSelected = false, Map extMap = const {}, Map<String, String>? customMap, String? type, String? showType, bool isCustomTitleHighLight = false, int maxSelectedCount = TSelectionConstant.maxSelectCount})
TSelectionEntity.fromJson(Map? map)
TSelectionEntity.simple({String? key, String? value, String title = '', String? type})
构造简单筛选数据

Properties

canJoinTitle bool
临时字段用于判断是否要将筛选项 name 字段拼接展示
getter/setter pair
children List<TSelectionEntity>
子筛选项
getter/setter pair
customMap Map<String, String>?
自定义输入
getter/setter pair
customTitle String?
自定义标题
getter/setter pair
defaultValue String?
默认值
getter/setter pair
extMap Map
扩展字段,目前只有min和max
getter/setter pair
filterShowType TSelectionWindowType?
筛选弹窗展示风格,具体参见 BrnSelectionWindowType
getter/setter pair
filterType TSelectionFilterType
筛选类型,具体参见 TSelectionFilterType
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
isCustomTitleHighLight bool
自定义筛选的 title 是否高亮
getter/setter pair
isSelected bool
///////// 以上为接口下发的原始数据字段 /////////////// ///////// 下方为组件另需要使用的字段 /////////////// 是否选中
getter/setter pair
key String?
回传给服务器的 key
getter/setter pair
maxSelectedCount int
最大可选数量
getter/setter pair
originalCustomMap Map
用于临时存储原有自定义字段数据,在筛选数据变化后未点击【确定】按钮时还原。
getter/setter pair
parent TSelectionEntity?
父级筛选项
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showType String?
筛选弹窗展示风格对应的首字母小写的字符串,例如 rangelist,参见 BrnSelectionWindowType
getter/setter pair
subTitle String?
显示的文案
getter/setter pair
title String
显示的文案
getter/setter pair
type String?
类型 是单选、复选还是有自定义输入
getter/setter pair
value String?
回传给服务器的 value
getter/setter pair

Methods

allSelectedList() List<TSelectionEntity>
clearChildSelection() → void
clearSelectedEntity() → void
configDefaultValue() → void
configRelationship() → void
configRelationshipAndDefaultValue() → void
currentDefaultTagCountForEntity() int
最终显示tag个数
currentRangeListForEntity() List<TSelectionEntity>
currentShowTagByExpanded(bool isExpanded) List<TSelectionEntity>
currentTagListForEntity() List<TSelectionEntity>
getDefaultShowCount() int
接口返回默认展示tag个数
getFirstSelectedChildIndex() int
getIndexInCurrentLevel() int
判断当前的筛选 Item 是否为当前层次中第一个被选中的 Item。 用于展开筛选弹窗时显示选中效果。
getLimitedRootMaxSelectedCount() int
getLimitedRootSelectedChildCount() int
getRootEntity(TSelectionEntity rootEntity) TSelectionEntity
getSelectedChildCount(TSelectionEntity entity) int
返回最后一层级【选中状态】 Item 的 个数
hasCheckBoxBrother() bool
检查自己的兄弟结点是否存在 checkbox 类型。
isInLastLevel() bool
是否在筛选数据的最后一层。 如果最大层次为 3;某个筛选数据层次为 2,但其无子节点。此时认为不在最后一层。
isOverCurrentTagListSize() bool
默认展示个数是否大于总tag个数
isUnLimit() bool
在这里简单认为 value 为空【null 或 ''】时为 unlimit.
isValidRange() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parserFilterTypeWithType(String? type) TSelectionFilterType
parserShowType(String? showType) TSelectionWindowType
reverseSelected() → void
selectedLastColumnList() List<TSelectionEntity>
selectedList() List<TSelectionEntity>
selectedListWithoutUnlimit() List<TSelectionEntity>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromMap(Map<String, dynamic> map) TSelectionEntity
建议使用 TSelectionEntity.fromJson