CalculatorSqrtButton class Null safety

The square root button, which draws and extra line above the blue label to visually complete the square-root symbol. Lining this up depends on the specific font, which is bundled with the app.

Inheritance

Constructors

CalculatorSqrtButton(ButtonFactory factory, String uText, String fText, String gText, NormalOperation uKey, NormalOperation fKey, NormalOperation gKey, String rawKeyboardKey)

Properties

acceleratorKey String
Key (or keys) to generate a press of this button
final, inherited
acceleratorLabel String
read-only, inherited
bFactory ButtonFactory
final, inherited
fKey Operation
final, inherited
fText String
final, inherited
gKey Operation
final, inherited
gText String
final, inherited
gTextOffset Offset
read-only, inherited
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
height double
read-only, inherited
innerBorder RRect
read-only, inherited
innerBorderColor Color
read-only, inherited
key Key?
Controls how one widget replaces another widget in the tree. [...]
final, inherited
keyTextOffset Offset
read-only, inherited
keyTextStyle TextStyle
read-only, inherited
lowerSurface RRect
read-only, inherited
lowerSurfaceColor Color
read-only, inherited
lowerSurfaceColorPressed Color
read-only, inherited
outerBorder RRect
read-only, inherited
outerBorderPressedScale double
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uKey Operation
final, inherited
upperSurface RRect
read-only, inherited
upperSurfaceColor Color
read-only, inherited
upperSurfaceColorPressed Color
read-only, inherited
uText String
final, inherited
width double
read-only, inherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() CalculatorButtonState
Creates the mutable state for this widget at a given location in the tree. [...]
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
drawBlueText(Canvas canvas, double w) → void
override
drawKeyboardAccelerator(Canvas canvas) → void
inherited
drawWhiteText(Canvas canvas, TextStyle style, String text, double w) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
paintForPainter(Canvas canvas, Size size, {required bool pressed, required bool pressedFromKeyboard, required bool showAccelerators}) → void
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. [...]
@nonVirtual, inherited