copyWith method
CheckboxStyle
copyWith({
- MaterialStateProperty<
MouseCursor?> ? mouseCursor, - MaterialStateProperty<
Color?> ? fillColor, - MaterialStateProperty<
Color?> ? checkColor, - MaterialStateProperty<
Color?> ? overlayColor, - double? splashRadius,
- MaterialTapTargetSize? materialTapTargetSize,
- VisualDensity? visualDensity,
- OutlinedBorder? shape,
- BorderSide? side,
- double? size,
Implementation
CheckboxStyle copyWith({
MaterialStateProperty<MouseCursor?>? mouseCursor,
MaterialStateProperty<Color?>? fillColor,
MaterialStateProperty<Color?>? checkColor,
MaterialStateProperty<Color?>? overlayColor,
double? splashRadius,
MaterialTapTargetSize? materialTapTargetSize,
VisualDensity? visualDensity,
OutlinedBorder? shape,
BorderSide? side,
double? size,
}) {
return CheckboxStyle(
size: size ?? this.size,
baseStyle: _baseStyle.copyWith(
mouseCursor: mouseCursor,
fillColor: fillColor,
checkColor: checkColor,
overlayColor: overlayColor,
splashRadius: splashRadius,
materialTapTargetSize: materialTapTargetSize,
visualDensity: visualDensity,
shape: shape,
side: side
)
);
}