ClassicListDialogWidget<T> class
created time: 2019-08-01 08:59 author linzhiliang version 1.0 since file name: classic_dialog_widget.dart description: Classic dialog with list content
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ClassicListDialogWidget
- Available Extensions
Constructors
-
ClassicListDialogWidget({String? titleText, required List<
T> dataList, Widget? listItem, VoidCallback? onListItemClick, ListType? listType = ListType.single, ListTileControlAffinity? controlAffinity = ListTileControlAffinity.leading, Color? activeColor, List<int> ? selectedIndexes, int? selectedIndex, List<Widget> ? actions, String? negativeText, String? positiveText, VoidCallback? onNegativeClick, VoidCallback? onPositiveClick})
Properties
-
actions
→ List<
Widget> ? -
Actions at the bottom of dialog, when this is set, negativeText positiveText onNegativeClick onPositiveClick will not work。
final
- activeColor → Color?
-
The active color of radio or checkbox
final
- controlAffinity → ListTileControlAffinity?
-
Where to place control relative to the text
final
-
dataList
→ List<
T> -
Data of the list
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- listItem → Widget?
-
Custom list item widget
final
- listType → ListType?
-
List type
final
- negativeText → String?
-
Text of negative button, the left button at the bottom of dialog
final
- onListItemClick → VoidCallback?
-
Click callback of default list item
final
- onNegativeClick → VoidCallback?
-
Click callback of negative button
final
- onPositiveClick → VoidCallback?
-
Click callback of positive button
final
- positiveText → String?
-
Text of positive button, the right button at the bottom of dialog
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIndex → int?
-
Selected index when listType is ListType.singleSelect
final
-
selectedIndexes
→ List<
int> ? -
Selected indexes when listType is ListType.multiSelect
final
- titleText → String?
-
Title text of the dialog
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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
-
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}) → 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