Viewport class Null safety

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.
read-onlyinherited
height num
Rectangle height in device independent pixels (dip).
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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 non-existent 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