copyWith abstract method

TextLayer copyWith({
  1. double? blur,
  2. double? dx,
  3. double? dy,
  4. double? opacity,
  5. SceneLayerBox? box,
  6. SceneBlendMode? blend,
})

This pass with the fields given changed and the rest kept. Every edit and every rescale goes through here, so a field added to a pass is carried by all of them rather than dropped by whichever call site respelled the constructor and forgot it.

Implementation

TextLayer copyWith({
  double? blur,
  double? dx,
  double? dy,
  double? opacity,
  SceneLayerBox? box,
  SceneBlendMode? blend,
});