PatternLock class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- PatternLock
Constructors
-
PatternLock({Key? key, int dimension = 3, double relativePadding = 0.7, Color? selectedColor, Color notSelectedColor = Colors.black45, double pointRadius = 10, bool showInput = true, int selectThreshold = 25, bool fillPoints = false, required dynamic onInputComplete(List<
int> )}) -
Creates PatternLock with given params.
const
Properties
- dimension → int
-
Count of points horizontally and vertically.
final
- fillPoints → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- notSelectedColor → Color
-
Color of not selected points.
final
-
onInputComplete
→ dynamic Function(List<
int> ) -
Callback that called when user's input complete. Called if user selected one or more points.
final
- pointRadius → double
-
Radius of points.
final
- relativePadding → double
-
Padding of points area relative to distance between points.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedColor → Color?
-
Color of selected points.
final
- selectThreshold → int
-
final
- showInput → bool
-
Whether show user's input and highlight selected points.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _PatternLockState -
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