copyWith static method
Makes a copy of the nearest CheckboxTheme overwriting selected fields.
Implementation
static Widget copyWith({
Key? key,
required Widget child,
Color? disabledColor,
Color? activeColor,
Color? activeHoverColor,
Color? inactiveColor,
Color? inactiveHoverColor,
Color? foreground,
double? containerSize,
}) {
return Builder(
key: key,
builder: (context) => CheckboxTheme(
data: CheckboxTheme.of(context).copyWith(
disabledColor: disabledColor,
activeColor: activeColor,
activeHoverColor: activeHoverColor,
inactiveColor: inactiveColor,
inactiveHoverColor: inactiveHoverColor,
foreground: foreground,
containerSize: containerSize,
),
child: child,
),
);
}