copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
MaskPosition copyWith({
MaskPoint? point,
double? xShift,
double? yShift,
double? scale,
}) =>
MaskPosition(
point: point ?? this.point,
xShift: xShift ?? this.xShift,
yShift: yShift ?? this.yShift,
scale: scale ?? this.scale,
);