copyWith static method
Makes a copy of the nearest ScrollbarTheme overwriting selected fields.
Implementation
static Widget copyWith({
Key? key,
required Widget child,
Color? disabledColor,
Color? color,
Color? hoverColor,
Color? highlightColor,
Color? inhoverColor,
Color? foreground,
Color? trackColor,
}) {
return Builder(
key: key,
builder: (context) => ScrollbarTheme(
data: ScrollbarTheme.of(context).copyWith(
disabledColor: disabledColor,
color: color,
hoverColor: hoverColor,
highlightColor: highlightColor,
inhoverColor: inhoverColor,
foreground: foreground,
trackColor: trackColor,
),
child: child,
),
);
}