copyWith method

CheckboxStyle copyWith({
  1. MaterialStateProperty<MouseCursor?>? mouseCursor,
  2. MaterialStateProperty<Color?>? fillColor,
  3. MaterialStateProperty<Color?>? checkColor,
  4. MaterialStateProperty<Color?>? overlayColor,
  5. double? splashRadius,
  6. MaterialTapTargetSize? materialTapTargetSize,
  7. VisualDensity? visualDensity,
  8. OutlinedBorder? shape,
  9. BorderSide? side,
  10. 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
    )
  );
}