RoundCheckBox class

Widget that draws a beautiful checkbox rounded. Provided with animation if wanted.

Inheritance

Constructors

RoundCheckBox.new({Key? key, bool? isChecked, Widget? checkedWidget, Widget? uncheckedWidget, Color? checkedColor, Color? uncheckedColor, Color? disabledColor, Border? border, Color? borderColor, double? size, Duration? animationDuration, double? checkIconSize, bool isRound = true, bool disabled = false, required dynamic onTap(bool?)?})
const

Properties

animationDuration Duration?
Define the duration of the animation. If any.
final
border Border?
Define the border of the widget.
final
borderColor Color?
Define the border color of the widget.
final
checkedColor Color?
Define the color that is shown when the widget is checked.
final
checkedWidget Widget?
Define the widget that is shown when the widget is checked.
final
checkIconSize double?
final
disabled bool
final
disabledColor Color?
Define the color that is shown when the widget is disabled.
final
hashCode int
The hash code for this object.
no setterinherited
isChecked bool?
Define whether the checkbox is marked or not.
final
isRound bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap → dynamic Function(bool?)?
Define function that is executed when the user taps on the checkbox. If onTap is given a null callback, it will be disabled.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double?
Define the size of the checkbox.
final
uncheckedColor Color?
Define the color that is shown when the widget is unchecked.
final
uncheckedWidget Widget?
Define the widget that is shown when the widget is unchecked.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _RoundCheckBoxState
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, 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