FFCheckbox constructor
FFCheckbox({
- bool? legacyInitialValue,
- FFColor? legacyUncheckedColor,
- FFBorderRadius? borderRadius,
- FFColor? legacyActiveColor,
- FFColor? legacyCheckColor,
- bool? legacyCircularCheck,
- FFCheckboxDensity? density,
- FFDisable? disabled,
- FFColor? legacyDisabledCheckColor,
- FFBooleanValue? initialValueValue,
- FFColorValue? uncheckedColorValue,
- FFColorValue? activeColorValue,
- FFColorValue? checkColorValue,
- FFBooleanValue? circularCheckValue,
- 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;
}