BlockElement class abstract

BlockElement is the base class for TextElements with rectangular shape and "block" placement rules.

Within HTML, this corresponds to elements with display: block property, such as <div> or <blockquote>.

Inheritance

Constructors

BlockElement(double width, double height)

Properties

boundingBox Rect
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
height double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
final

Methods

draw(Canvas canvas) → void
Renders the element on the canvas, at coordinates determined during the layout.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
translate(double dx, double dy) → void
Moves the element by (dx, dy) relative to its current location.
inherited

Operators

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