MaskPosition class

Implemented types

Constructors

MaskPosition({dynamic point, double xShift, double yShift, double scale})
Position on a photo where a mask should be placed. point Part of the face, relative to which the mask should be placed. xShift Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position). yShift Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. (For example, 1.0 will place the mask just below the default mask position). scale Mask scaling coefficient. (For example, 2.0 means a doubled size)
MaskPosition.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
point ↔ dynamic
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scale double
read / write
xShift double
read / write
yShift double
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"maskPosition"