Square class

Square is a BasicShape that has a _SquareState state class

Inheritance

Constructors

Square({required GlobalKey<ShakeWidgetState> shakeKey, required List<GlobalKey<BlinkWidgetState>> shakeKeyColors, required double width, required ValueNotifier<SelectionModes> selectionMode, required ValueNotifier<List<CrossButton>> coloredButtons, required ValueNotifier<List<CrossButton>> selectedButtons, required ValueNotifier<bool> resetSignal, required ResultNotifier resultValueNotifier, Key? key})
This is the constructor of the Square class.
const

Properties

coloredButtons ValueNotifier<List<CrossButton>>
Creating a list of CrossButton objects.
finalinherited
hashCode int
The hash code for this object.
read-onlyinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
resetSignal ValueNotifier<bool>
Creating a list of CrossButton objects.
finalinherited
resultValueNotifier ResultNotifier
A variable that is used to store the result of the interpreter.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selectedButtons ValueNotifier<List<CrossButton>>
Creating a list of CrossButton objects.
finalinherited
selectionMode ValueNotifier<SelectionModes>
It's a variable that is used to store the current selection mode.
finalinherited
shakeKey GlobalKey<ShakeWidgetState>
It's a key that is used to access the state of the ShakeWidget
finalinherited
shakeKeyColors List<GlobalKey<BlinkWidgetState>>
finalinherited
width double
It's a variable that is used to store the width of the widget.
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() BasicShapeState<Square>
createState() is a function that returns a new instance of the _SquareState class
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