Alignment class Null safety

Implementers

Constructors

Alignment(double x, double y)
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
x double
The distance fraction in the horizontal direction.
final
y double
The distance fraction in the vertical direction.
final

Methods

alongSize(PdfPoint other) PdfPoint
Returns the offset that is this fraction within the given size.
inscribe(PdfPoint size, PdfRect rect) PdfRect
Returns a rect of the given size, aligned within given rect as specified by this alignment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override
withinRect(PdfRect rect) PdfPoint
Returns the point that is this fraction within the given rect.

Operators

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

Constants

bottomCenter → const Alignment
The center point along the bottom edge.
Alignment(0, -1)
bottomLeft → const Alignment
The bottom left corner.
Alignment(-1, -1)
bottomRight → const Alignment
The bottom right corner.
Alignment(1, -1)
center → const Alignment
The center point, both horizontally and vertically.
Alignment(0, 0)
centerLeft → const Alignment
The center point along the left edge.
Alignment(-1, 0)
centerRight → const Alignment
The center point along the right edge.
Alignment(1, 0)
topCenter → const Alignment
The center point along the top edge.
Alignment(0, 1)
topLeft → const Alignment
The top left corner.
Alignment(-1, 1)
topRight → const Alignment
The top right corner.
Alignment(1, 1)