copyWith method

SvgBounds copyWith({
  1. Path? path,
  2. InteractiveSelector? selector,
})

Creates a copy of this SvgBounds with the provided fields replaced.

Useful for performing local modifications without mutating the original instance. Any parameter left null will preserve the corresponding value from the original.

Implementation

SvgBounds copyWith({
  Path? path,
  InteractiveSelector? selector,
}) =>
    SvgBounds(
      path: path ?? this.path,
      selector: selector ?? this.selector,
    );