Viewport class

Viewport for capturing screenshot.

Constructors

Viewport({required num x, required num y, required num width, required num height, required num scale})
Viewport.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
height num
Rectangle height in device independent pixels (dip).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale num
Page scale factor.
final
width num
Rectangle width in device independent pixels (dip).
final
x num
X offset in device independent pixels (dip).
final
y num
Y offset in device independent pixels (dip).
final

Methods

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

Operators

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