DrawableViewport class

Contains the viewport size and offset for a Drawable.

Annotations

Constructors

DrawableViewport(Size size, Size viewBox, {Offset viewBoxOffset = Offset.zero})
Creates a new DrawableViewport, which acts as a bounding box for the Drawable and specifies what offset (if any) the coordinate system needs to be translated by.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
height double
The height of the viewport rect.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
The viewport size of the drawable.
final
viewBox Size
The viewBox size for the drawable.
final
viewBoxOffset Offset
The offset for all drawing commands in this Drawable.
final
viewBoxRect Rect
A Rect representing the viewBox of this DrawableViewport.
no setter
width double
The width of the viewport rect.
no setter

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