SelectableCheckboxItem<K extends Key> class

A convenient widget, which wraps SelectableItem and displays a Checkbox for selection interaction.

See MultiSelectable for example.

Inheritance

Constructors

SelectableCheckboxItem({required K key, required SelectableItemWidgetBuilder<K> itemBuilder, Duration? switchDuration, Curve? switchCurve, PositionArgument checkboxPosition = const PositionArgument.fromLTRB(null, null, 8, 8), SelectableItemWidgetBuilder<K>? checkboxBuilder, bool useFullRipple = true, PositionArgument fullRipplePosition = const PositionArgument.fill(), SelectableItemWidgetBuilder<K>? fullRippleBuilder, SelectableItemVoidCallback<K>? onFullRippleLongPressed})
const

Properties

checkboxBuilder SelectableItemWidgetBuilder<K>?
The Checkbox widget builder of this widget, defaults to use MaterialTapTargetSize.shrinkWrap and VisualDensity(horizontal: -4, vertical: -4).
final
checkboxPosition PositionArgument
The Checkbox stack position of this widget, defaults to PositionArgument.fromLTRB(null, null, 8, 8).
final
fullRippleBuilder SelectableItemWidgetBuilder<K>?
The full ripple builder of this widget, defaults to use Material with InkWell inside.
final
fullRipplePosition PositionArgument
The full ripple stack position of this widget, defaults to PositionArgument.fill().
final
hashCode int
The hash code for this object.
no setterinherited
itemBuilder SelectableItemWidgetBuilder<K>
The widget builder for building current item, given current key and SelectableItemTip, which will be wrapped by SelectableItem and Stack.
final
key → K
The key used to distinguish items, which is inherited from Key and must not be null.
no setteroverride
onFullRippleLongPressed SelectableItemVoidCallback<K>?
The default full ripple long press callback, default to null.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
switchCurve Curve?
The curve for animation when showing or hiding checkbox for multi-selection mode.
final
switchDuration Duration?
The duration for animation when showing or hiding checkbox for multi-selection mode.
final
useFullRipple bool
The flag to determine whether use the full ripple widget (such as InkWell in Stack) rather than only using Checkbox, for toggling, defaults to true.
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
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