copyWith method

SideTitles copyWith({
  1. bool? showTitles,
  2. GetTitleWidgetFunction? getTitlesWidget,
  3. double? reservedSize,
  4. double? interval,
  5. bool? minIncluded,
  6. bool? maxIncluded,
})

Copies current SideTitles to a new SideTitles, and replaces provided values.

Implementation

SideTitles copyWith({
  bool? showTitles,
  GetTitleWidgetFunction? getTitlesWidget,
  double? reservedSize,
  double? interval,
  bool? minIncluded,
  bool? maxIncluded,
}) =>
    SideTitles(
      showTitles: showTitles ?? this.showTitles,
      getTitlesWidget: getTitlesWidget ?? this.getTitlesWidget,
      reservedSize: reservedSize ?? this.reservedSize,
      interval: interval ?? this.interval,
      minIncluded: minIncluded ?? this.minIncluded,
      maxIncluded: maxIncluded ?? this.maxIncluded,
    );