copyWith method

ScrollbarConfig copyWith({
  1. bool? visible,
  2. ScrollbarThemeData? themeData,
})

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

Implementation

ScrollbarConfig copyWith({bool? visible, ScrollbarThemeData? themeData}) {
  return ScrollbarConfig(
    visible: visible ?? this.visible,
    themeData: themeData ?? this.themeData,
  );
}