LedgerFocusRing class

The focus mark a Ledger control wears: the accountant's double rule, two lines of LedgerChromeMetrics.focusRing in color, LedgerChromeMetrics.focusGap apart and twice that under the face standing insets inside child's box, clear of the face's drop. It is centred under the face and as long as the face less one corner of radius, never shorter than three quarters of the face. It is drawn in from the reading start as a pen draws it, in LedgerMotion.base, and drawn back out when focus leaves. Painted over the child, it takes no room and no taps. Plumbing of the controls; pages never place one.

Inheritance

Constructors

LedgerFocusRing({required double radius, required Color color, required Widget child, EdgeInsetsGeometry insets = EdgeInsets.zero, bool shown = true, Key? key})
The double rule under child.
const

Properties

child → Widget
The control the rule stands under.
final
color → Color
The rule's ink.
final
hashCode → int
The hash code for this object.
no setterinherited
insets → EdgeInsetsGeometry
How far the face stands inside the child's box.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
radius → double
The corner radius of the face it rules under.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shown → bool
Whether the rule is drawn: the control keeps one tree either way.
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.
override
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