FFCheckboxGroup constructor

FFCheckboxGroup({
  1. @Deprecated('This field is deprecated.') Iterable<FFText>? legacyOptions,
  2. @Deprecated('This field is deprecated.') Iterable<FFText>? legacyInitiallySelected,
  3. FFPadding? textPadding,
  4. FFPadding? itemPadding,
  5. FFColor? legacyActiveColor,
  6. FFColor? legacyCheckColor,
  7. FFBorderRadius? checkboxBorderRadius,
  8. FFText? textStyle,
  9. FFColor? legacyBorderColor,
  10. FFDisable? disabled,
  11. FFText? unselectedTextStyle,
  12. FFColorValue? activeColorValue,
  13. FFColorValue? checkColorValue,
  14. FFColorValue? borderColorValue,
  15. FFTextOptionsValue? options,
  16. FFTextOptionsValue? initiallySelected,
})

Implementation

factory FFCheckboxGroup({
  @$core.Deprecated('This field is deprecated.')
  $core.Iterable<FFText>? legacyOptions,
  @$core.Deprecated('This field is deprecated.')
  $core.Iterable<FFText>? legacyInitiallySelected,
  FFPadding? textPadding,
  FFPadding? itemPadding,
  FFColor? legacyActiveColor,
  FFColor? legacyCheckColor,
  FFBorderRadius? checkboxBorderRadius,
  FFText? textStyle,
  FFColor? legacyBorderColor,
  FFDisable? disabled,
  FFText? unselectedTextStyle,
  FFColorValue? activeColorValue,
  FFColorValue? checkColorValue,
  FFColorValue? borderColorValue,
  FFTextOptionsValue? options,
  FFTextOptionsValue? initiallySelected,
}) {
  final result = create();
  if (legacyOptions != null) result.legacyOptions.addAll(legacyOptions);
  if (legacyInitiallySelected != null)
    result.legacyInitiallySelected.addAll(legacyInitiallySelected);
  if (textPadding != null) result.textPadding = textPadding;
  if (itemPadding != null) result.itemPadding = itemPadding;
  if (legacyActiveColor != null) result.legacyActiveColor = legacyActiveColor;
  if (legacyCheckColor != null) result.legacyCheckColor = legacyCheckColor;
  if (checkboxBorderRadius != null)
    result.checkboxBorderRadius = checkboxBorderRadius;
  if (textStyle != null) result.textStyle = textStyle;
  if (legacyBorderColor != null) result.legacyBorderColor = legacyBorderColor;
  if (disabled != null) result.disabled = disabled;
  if (unselectedTextStyle != null)
    result.unselectedTextStyle = unselectedTextStyle;
  if (activeColorValue != null) result.activeColorValue = activeColorValue;
  if (checkColorValue != null) result.checkColorValue = checkColorValue;
  if (borderColorValue != null) result.borderColorValue = borderColorValue;
  if (options != null) result.options = options;
  if (initiallySelected != null) result.initiallySelected = initiallySelected;
  return result;
}