copyWith method

FlPortStyle copyWith({
  1. FlPortShape? shape,
  2. Color? color,
  3. FlLinkStyleBuilder? linkStyleBuilder,
  4. double? radius,
})

Implementation

FlPortStyle copyWith({
  FlPortShape? shape,
  Color? color,
  FlLinkStyleBuilder? linkStyleBuilder,
  double? radius,
}) {
  return FlPortStyle(
    shape: shape ?? this.shape,
    color: color ?? this.color,
    radius: radius ?? this.radius,
    linkStyleBuilder: linkStyleBuilder ?? this.linkStyleBuilder,
  );
}