copyWith method

GraphicContext copyWith({
  1. Position? position,
  2. PColor? color,
  3. PColor? backgroundColor,
  4. num? scaleX,
  5. num? scaleY,
})

Implementation

GraphicContext copyWith(
        {Position? position,
        PColor? color,
        PColor? backgroundColor,
        num? scaleX,
        num? scaleY}) =>
    GraphicContext(
        position: position ?? this.position,
        color: color ?? this.color,
        backgroundColor: backgroundColor ?? this.backgroundColor,
        scaleX: scaleX ?? this.scaleX,
        scaleY: scaleY ?? this.scaleY);