NonNegativeOffset class

Expands the captured image region beyond the cutout in camera pixels (px). Non-negative values only — negative values will cause a runtime exception. Example: cutout width=700px with padding={x:10} → 720px captured.

An x/y integer value pair where both values must be >= 0. The unit depends on the property that references this definition.

Constructors

NonNegativeOffset({int? x, int? y})
NonNegativeOffset.fromJson(Map<String, dynamic> json)
factory
NonNegativeOffset.fromRawJson(String str)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x int?
getter/setter pair
y int?
getter/setter pair

Methods

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

Operators

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