copyWith method

WheelLabelStyle copyWith({
  1. TextStyle? labelStyle,
  2. double? angle,
  3. TextOverflow? overflow,
  4. int? maxLines,
})

Creates a copy of this style with the given fields replaced.

Implementation

WheelLabelStyle copyWith({
  TextStyle? labelStyle,
  double? angle,
  TextOverflow? overflow,
  int? maxLines,
}) {
  return WheelLabelStyle(
    labelStyle: labelStyle ?? this.labelStyle,
    angle: angle ?? this.angle,
    overflow: overflow ?? this.overflow,
    maxLines: maxLines ?? this.maxLines,
  );
}