copyWith method
- WidgetStateProperty<
bool?> ? thumbVisibility, - WidgetStateProperty<
double?> ? thickness, - WidgetStateProperty<
bool?> ? trackVisibility, - bool? interactive,
- Radius? radius,
- WidgetStateProperty<
Color?> ? thumbColor, - WidgetStateProperty<
Color?> ? trackColor, - WidgetStateProperty<
Color?> ? trackBorderColor, - double? crossAxisMargin,
- double? mainAxisMargin,
- double? minThumbLength,
Creates a copy of this object with the given fields replaced with the new values.
Implementation
ScrollbarThemeData copyWith({
WidgetStateProperty<bool?>? thumbVisibility,
WidgetStateProperty<double?>? thickness,
WidgetStateProperty<bool?>? trackVisibility,
bool? interactive,
Radius? radius,
WidgetStateProperty<Color?>? thumbColor,
WidgetStateProperty<Color?>? trackColor,
WidgetStateProperty<Color?>? trackBorderColor,
double? crossAxisMargin,
double? mainAxisMargin,
double? minThumbLength,
}) {
return ScrollbarThemeData(
thumbVisibility: thumbVisibility ?? this.thumbVisibility,
thickness: thickness ?? this.thickness,
trackVisibility: trackVisibility ?? this.trackVisibility,
interactive: interactive ?? this.interactive,
radius: radius ?? this.radius,
thumbColor: thumbColor ?? this.thumbColor,
trackColor: trackColor ?? this.trackColor,
trackBorderColor: trackBorderColor ?? this.trackBorderColor,
crossAxisMargin: crossAxisMargin ?? this.crossAxisMargin,
mainAxisMargin: mainAxisMargin ?? this.mainAxisMargin,
minThumbLength: minThumbLength ?? this.minThumbLength,
);
}