CustomCheckBox.icon constructor

CustomCheckBox.icon(
  1. IconData checked,
  2. IconData normal,
  3. double size, {
  4. dynamic onChanged(
    1. bool
    )?,
  5. double? padding,
  6. bool? value,
  7. bool? enable,
})

Implementation

CustomCheckBox.icon(IconData checked, IconData normal, double size, {Function(bool)? onChanged, double? padding, bool? value, bool? enable})
    : iconChecked = Icon(checked),
      iconNormal = Icon(normal),
      size = Size(size, size),
      // iconDisable = nameDisable == null ? null : Image.asset(nameDisable),
      onChanged = onChanged ?? onChanged,
      value = value ?? false,
      clickable = enable ?? true,
      padding = padding ?? 0;