CutoutConfig class

Schema for SDK Cutout Configuration

Constructors

CutoutConfig({CutoutConfigAlignment? alignment, CutoutConfigAnimation? animation, int? cornerRadius, Offset? cropOffset, NonNegativeOffset? cropPadding, String? feedbackStrokeColor, String? maxHeightPercent, String? maxWidthPercent, Offset? offset, double? outerAlpha, String? outerColor, RatioFromSize? ratioFromSize, String? strokeColor, int? strokeWidth, int? width})
CutoutConfig.fromJson(Map<String, dynamic> json)
factory
CutoutConfig.fromRawJson(String str)
factory

Properties

alignment CutoutConfigAlignment?
The alignment of the cutout area.
getter/setter pair
animation CutoutConfigAnimation?
Animation type for the cutout when initially displayed. Values: none, fade, zoom
getter/setter pair
cornerRadius int?
The corner radius of the cutout in density-independent pixels (dp).
getter/setter pair
cropOffset Offset?
Adjusts the captured region position in camera pixels (px) after cropPadding is applied. Positive x shifts right, positive y shifts down.
getter/setter pair
cropPadding NonNegativeOffset?
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.
getter/setter pair
feedbackStrokeColor String?
The hex string (RRGGBB) of the stroke color for visual feedback. (e.g. 00CCFF).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxHeightPercent String?
The maximum height in percent (0-100), relating to the size of the view.
getter/setter pair
maxWidthPercent String?
The maximum width in percent (0-100), relating to the size of the view.
getter/setter pair
offset Offset?
Position offset of the cutout in camera pixels (px), used in conjunction with alignment.
getter/setter pair
outerAlpha double?
Optional transparency factor for the outer color (0.0 - 1.0).
getter/setter pair
outerColor String?
Background color as a 6-digit (RRGGBB) or 8-digit (AARRGGBB) hex string.
getter/setter pair
ratioFromSize RatioFromSize?
A size constraining the ratio of width / height. If set to 0, the ratio will be equal to the full frame. For the optimal ratio for each technical capability have a look at the Technical Capabilities section at documentation.anyline.com.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeColor String?
The hex string (RRGGBB) of the stroke color. (e.g. 00CCFF).
getter/setter pair
strokeWidth int?
The stroke width of the cutout border in density-independent pixels (dp). If set to 0, the line will be invisible.
getter/setter pair
width int?
The preferred width in pixels, relating to the camera resolution. If not specified or 0, the maximum possible width will be chosen.
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