MaskPosition class final
Position on a photo where a mask is placed
Constructors
- MaskPosition({required MaskPoint point, required double xShift, required double yShift, required double scale})
-
Position on a photo where a mask is placed
const
-
MaskPosition.fromJson(Map<
String, dynamic> json) -
Parses a MaskPosition from TDLib JSON.
factory
Properties
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- point → MaskPoint
-
Part of the face, relative to which the mask is placed
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → double
-
Mask scaling coefficient. (For example, 2.0 means a doubled 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, -1.0 will place the 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
-
copyWith(
{MaskPoint? point, double? xShift, double? yShift, double? scale}) → MaskPosition -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.