copyWith method

MaskPosition copyWith({
  1. MaskPoint? point,
  2. double? xShift,
  3. double? yShift,
  4. double? scale,
})

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,
);