LedgerPlot class
A plot sized by its constraints: as wide as it may be, as tall as height or the source's aspect for its width class (phoneAspect up to 1024, deskAspect from it), its engraving drawn by draw at that size in the source's own units (one unit a pixel), and its labels over it. Plumbing of the engravings.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- LedgerPlot
Constructors
- LedgerPlot({required double phoneAspect, required double deskAspect, required LedgerPlotParts draw(Size size, bool wide), double? height, Key? key})
-
A plot drawn by
draw, sized byheightor its aspects.const
Properties
- deskAspect → double
-
Height over width from 1024.
final
- draw → LedgerPlotParts Function(Size size, bool wide)
-
Draws the engraving and its labels at the plot's size.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The plot's height; null takes the aspect's.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- phoneAspect → double
-
Height over width, as the source's phone and desktop plots stand.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
- labelTextScale → const double
- The most a label in the plot grows with the reader's text (130%): it stands where the engraving puts it, and past this it would lie over the line and its neighbours. The chart's keys and rulers grow to the page's 200%, and a screen reader reads the chart whole.