merge method

Merge this checkbox theme data with another

Implementation

CheckboxThemeData merge(CheckboxThemeData? style) {
  return CheckboxThemeData(
    margin: style?.margin ?? margin,
    padding: style?.padding ?? padding,
    icon: style?.icon ?? icon,
    checkedIconColor: style?.checkedIconColor ?? checkedIconColor,
    uncheckedIconColor: style?.uncheckedIconColor ?? uncheckedIconColor,
    thirdstateIconColor: style?.thirdstateIconColor ?? thirdstateIconColor,
    checkedDecoration: style?.checkedDecoration ?? checkedDecoration,
    uncheckedDecoration: style?.uncheckedDecoration ?? uncheckedDecoration,
    thirdstateDecoration: style?.thirdstateDecoration ?? thirdstateDecoration,
    foregroundColor: style?.foregroundColor ?? foregroundColor,
  );
}