UFUMultiSelectView class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- UFUMultiSelectView
Constructors
-
UFUMultiSelectView.new({required List<
UFUMultiSelectModel> mainList, required List<UFUMultiSelectModel> list, Widget? totalAmount, required List<UFUMultiSelectModel> subList, String? inputHintText, String? title, ValueChanged<String> ? onSearch, bool canShowSearchBar = false, TextEditingController? searchInputCtrl, ValueChanged<String> ? onItemTap, ValueChanged<String> ? onSubItemTap, VoidCallback? selectAndClearAll, VoidCallback? onDone, bool isFilterSheet = false, Widget? headerPrefixChild, Widget? doneIcon, bool disableButtons = false, bool canDisableDoneButton = false, UFUMultiSelectType type = UFUMultiSelectType.local, bool isLoading = false, bool canShowMore = false, ScrollController? scrollController, int? totalNetworkListCount, required List<UFUMultiSelectModel> selectedItems, bool? isSelectedSubListItems, Widget? listLoader, String? helperText, bool? canShowSubList, VoidCallback? showSubList, required bool isViewSubList, String? subTitleHeader, int? tempSelectedItemsCount, int? filterListItemsCount, ScrollController? scrollList, bool hideSelectAll = false, bool showIncludeInactiveButton = false, VoidCallback? onTapIncludeInactiveButton, bool includeInactive = false, Key? key}) -
const
Properties
- canDisableDoneButton → bool
-
final
- canShowMore → bool
-
In case of network list canShowMore helps to manage loader state
final
- canShowSearchBar → bool
-
Defines searchBar is added or not of a multiselect.
final
- canShowSubList → bool?
-
Defines to show user filter
final
- disableButtons → bool
-
final
- doneIcon → Widget?
-
final
- filterListItemsCount → int?
-
Defines filterList item count of a list.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerPrefixChild → Widget?
-
Defines to add child in the header at right side of a multiselect.
final
- helperText → String?
-
helperText can be used to display some info as a helper to user
final
- hideSelectAll → bool
-
Can be used to hide
Select All/Clear All
optionfinal - includeInactive → bool
-
final
- inputHintText → String?
-
Defines hint text of a searchbox.
final
- isFilterSheet → bool
-
Defines to filter list of multiselect.
final
- isLoading → bool
-
In case of network list isLoading helps to manage loading state
final
- isSelectedSubListItems → bool?
-
Defines that sublist is selected or not.
final
- isViewSubList → bool
-
Define to show subList or not.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
list
→ List<
UFUMultiSelectModel> -
Defines modified list which is copy from mailList using modal class UFUMultiSelectModal of a multiselect.
final
- listLoader → Widget?
-
In case of network list listLoader is used to display a loading placeholder
final
-
mainList
→ List<
UFUMultiSelectModel> -
Defines mainList using modal class UFUMultiSelectModal of a multiselect.
final
- onDone → VoidCallback?
-
This method is used when onDone callback it is use to return updated list.
final
-
onItemTap
→ ValueChanged<
String> ? -
This method is call when we select the item in a multiselect.
final
-
onSearch
→ ValueChanged<
String> ? -
Defines the onSearch method to filter the modified list.
final
-
onSubItemTap
→ ValueChanged<
String> ? -
final
- onTapIncludeInactiveButton → VoidCallback?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollController → ScrollController?
-
In case of network list, scrollController helps in load-more
final
- scrollList → ScrollController?
-
final
- searchInputCtrl → TextEditingController?
-
Define controller of a searchBar of a multiselect.
final
- selectAndClearAll → VoidCallback?
-
This method is call when we clear or select complete list.
final
-
selectedItems
→ List<
UFUMultiSelectModel> -
final
- showIncludeInactiveButton → bool
-
final
- showSubList → VoidCallback?
-
Function to show user filter or not.
final
-
subList
→ List<
UFUMultiSelectModel> -
Defines subList using modal class UFUMultiSelectModal of a multiselect.
final
- subTitleHeader → String?
-
Defines sub list title.
final
- tempSelectedItemsCount → int?
-
Defines tempSelected item count of a filterList.
final
- title → String?
-
Defines title of a multiselect.
final
- totalAmount → Widget?
-
final
- totalNetworkListCount → int?
-
In case of network list totalNetworkListCount is used to display
number of total available items
final
- type → UFUMultiSelectType
-
type can be used to differentiate between network list and local list
default selected type is UFUMultiSelectType.local
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
getBorderRadius(
) → BorderRadius -
getHeight(
BuildContext context, {double? ratio}) → double -
getsubListHeight(
) → double -
getView(
BuildContext context) → Widget -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited