FFBarcode constructor

FFBarcode({
  1. String? legacyValue,
  2. @Deprecated('This field is deprecated.') double? legacyWidth,
  3. @Deprecated('This field is deprecated.') double? legacyHeight,
  4. FFBarcode_BarcodeType? type,
  5. FFBarcode_BarcodeTypeCategory? typeCategory,
  6. FFColor? legacyForegroundColor,
  7. FFColor? legacyBackgroundColor,
  8. bool? legacyShowText,
  9. FFDimensions? dimensions,
  10. FFStringValue? valueValue,
  11. FFColorValue? foregroundColorValue,
  12. FFColorValue? backgroundColorValue,
  13. FFBooleanValue? showTextValue,
})

Implementation

factory FFBarcode({
  $core.String? legacyValue,
  @$core.Deprecated('This field is deprecated.') $core.double? legacyWidth,
  @$core.Deprecated('This field is deprecated.') $core.double? legacyHeight,
  FFBarcode_BarcodeType? type,
  FFBarcode_BarcodeTypeCategory? typeCategory,
  FFColor? legacyForegroundColor,
  FFColor? legacyBackgroundColor,
  $core.bool? legacyShowText,
  FFDimensions? dimensions,
  FFStringValue? valueValue,
  FFColorValue? foregroundColorValue,
  FFColorValue? backgroundColorValue,
  FFBooleanValue? showTextValue,
}) {
  final result = create();
  if (legacyValue != null) result.legacyValue = legacyValue;
  if (legacyWidth != null) result.legacyWidth = legacyWidth;
  if (legacyHeight != null) result.legacyHeight = legacyHeight;
  if (type != null) result.type = type;
  if (typeCategory != null) result.typeCategory = typeCategory;
  if (legacyForegroundColor != null)
    result.legacyForegroundColor = legacyForegroundColor;
  if (legacyBackgroundColor != null)
    result.legacyBackgroundColor = legacyBackgroundColor;
  if (legacyShowText != null) result.legacyShowText = legacyShowText;
  if (dimensions != null) result.dimensions = dimensions;
  if (valueValue != null) result.valueValue = valueValue;
  if (foregroundColorValue != null)
    result.foregroundColorValue = foregroundColorValue;
  if (backgroundColorValue != null)
    result.backgroundColorValue = backgroundColorValue;
  if (showTextValue != null) result.showTextValue = showTextValue;
  return result;
}