SelectionEntity constructor

SelectionEntity({
  1. String? key,
  2. String? value,
  3. String? defaultValue,
  4. String title = '',
  5. String? subTitle,
  6. List<SelectionEntity> children = const [],
  7. bool isSelected = false,
  8. Map extMap = const {},
  9. Map<String, String>? customMap,
  10. String? type,
  11. String? showType,
  12. bool isCustomTitleHighLight = false,
  13. int maxSelectedCount = SelectionConstant.maxSelectCount,
})

Implementation

SelectionEntity(
    {this.key,
    this.value,
    this.defaultValue,
    this.title = '',
    this.subTitle,
    this.children = const [],
    this.isSelected = false,
    this.extMap = const {},
    this.customMap,
    this.type,
    this.showType,
    this.isCustomTitleHighLight = false,
    this.maxSelectedCount = SelectionConstant.maxSelectCount}) {
  filterType = parserFilterTypeWithType(type);
  filterShowType = parserShowType(showType);
  originalCustomMap = Map();
}