MaskPosition class

This object describes the position on faces where a mask should be placed by default.

Constructors

MaskPosition({required MaskPositionPoint point, required double xShift, required double yShift, required double scale})
Constructs a MaskPosition object
const
MaskPosition.fromJson(Map<String, dynamic> json)
Creates a MaskPosition object from a JSON map
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
point MaskPositionPoint
The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
Mask scaling coefficient. For example, 2.0 means double size.
final
xShift double
Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.
final
yShift double
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.
final

Methods

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

Operators

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