MaskPosition class

Inheritance

Constructors

MaskPosition({MaskPoint point, double xShift, double yShift, double scale})
Position on a photo where a mask should be placed
MaskPosition.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
point MaskPoint
point Part of the face, relative to which the mask should be placed
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scale double
scale Mask scaling coefficient. (For example, 2.0 means a doubled size)
read / write
xShift double
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)
read / write
yShift double
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)
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
A string representation of this object. [...]
inherited

Operators

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

Constants

CONSTRUCTOR → const String
'maskPosition'