FFCheckbox constructor

FFCheckbox({
  1. bool? legacyInitialValue,
  2. FFColor? legacyUncheckedColor,
  3. FFBorderRadius? borderRadius,
  4. FFColor? legacyActiveColor,
  5. FFColor? legacyCheckColor,
  6. bool? legacyCircularCheck,
  7. FFCheckboxDensity? density,
  8. FFDisable? disabled,
  9. FFColor? legacyDisabledCheckColor,
  10. FFBooleanValue? initialValueValue,
  11. FFColorValue? uncheckedColorValue,
  12. FFColorValue? activeColorValue,
  13. FFColorValue? checkColorValue,
  14. FFBooleanValue? circularCheckValue,
  15. FFColorValue? disabledCheckColorValue,
})

Implementation

factory FFCheckbox({
  $core.bool? legacyInitialValue,
  FFColor? legacyUncheckedColor,
  FFBorderRadius? borderRadius,
  FFColor? legacyActiveColor,
  FFColor? legacyCheckColor,
  $core.bool? legacyCircularCheck,
  FFCheckboxDensity? density,
  FFDisable? disabled,
  FFColor? legacyDisabledCheckColor,
  FFBooleanValue? initialValueValue,
  FFColorValue? uncheckedColorValue,
  FFColorValue? activeColorValue,
  FFColorValue? checkColorValue,
  FFBooleanValue? circularCheckValue,
  FFColorValue? disabledCheckColorValue,
}) {
  final result = create();
  if (legacyInitialValue != null)
    result.legacyInitialValue = legacyInitialValue;
  if (legacyUncheckedColor != null)
    result.legacyUncheckedColor = legacyUncheckedColor;
  if (borderRadius != null) result.borderRadius = borderRadius;
  if (legacyActiveColor != null) result.legacyActiveColor = legacyActiveColor;
  if (legacyCheckColor != null) result.legacyCheckColor = legacyCheckColor;
  if (legacyCircularCheck != null)
    result.legacyCircularCheck = legacyCircularCheck;
  if (density != null) result.density = density;
  if (disabled != null) result.disabled = disabled;
  if (legacyDisabledCheckColor != null)
    result.legacyDisabledCheckColor = legacyDisabledCheckColor;
  if (initialValueValue != null) result.initialValueValue = initialValueValue;
  if (uncheckedColorValue != null)
    result.uncheckedColorValue = uncheckedColorValue;
  if (activeColorValue != null) result.activeColorValue = activeColorValue;
  if (checkColorValue != null) result.checkColorValue = checkColorValue;
  if (circularCheckValue != null)
    result.circularCheckValue = circularCheckValue;
  if (disabledCheckColorValue != null)
    result.disabledCheckColorValue = disabledCheckColorValue;
  return result;
}