CanvasBox class

The box a canvas takes, and the size it's laid out at inside it.

Annotations

Constructors

CanvasBox({required double width, required double? height, required double layoutWidth, required double? layoutHeight, required double scale, double minHeight = 0})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
height → double?
final
layoutHeight → double?
final
layoutWidth → double
The size the canvas lays out at (its design size when scaled).
final
minHeight → double
The least height of a box as tall as its content (height null): the least its host gives it (a page in a scroll view that is told its window's height), so a page shorter than its window still reaches the window's foot with its own ground. 0: none.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scale → double
layout → box scale (1 unless autoScale).
final
width → double
The box (null height: the canvas's content height).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited