copyWith method

VooYearViewConfig copyWith({
  1. int? columns,
  2. bool? showEventIndicators,
  3. ScrollController? scrollController,
  4. bool? showScrollbar,
  5. EdgeInsetsGeometry? padding,
  6. EdgeInsets? scrollPadding,
})

Create a copy with modified properties

Implementation

VooYearViewConfig copyWith({
  int? columns,
  bool? showEventIndicators,
  ScrollController? scrollController,
  bool? showScrollbar,
  EdgeInsetsGeometry? padding,
  EdgeInsets? scrollPadding,
}) {
  return VooYearViewConfig(
    columns: columns ?? this.columns,
    showEventIndicators: showEventIndicators ?? this.showEventIndicators,
    scrollController: scrollController ?? this.scrollController,
    showScrollbar: showScrollbar ?? this.showScrollbar,
    padding: padding ?? this.padding,
    scrollPadding: scrollPadding ?? this.scrollPadding,
  );
}