CustomCheckBox.asset constructor

CustomCheckBox.asset(
  1. String nameCheck,
  2. String nameNormal,
  3. double size, {
  4. dynamic onChanged(
    1. bool
    )?,
  5. double? padding,
  6. bool? value,
  7. bool? enable,
})

Implementation

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