FFSignature constructor

FFSignature({
  1. FFColor? legacyPenColor,
  2. FFColor? legacyBackgroundColor,
  3. FFColor? legacyExportBackgroundColor,
  4. FFDimensions? dimensions,
  5. double? legacyStrokeWidth,
  6. FFColorValue? penColorValue,
  7. FFColorValue? backgroundColorValue,
  8. FFColorValue? exportBackgroundColorValue,
  9. FFDoubleValue? strokeWidthValue,
})

Implementation

factory FFSignature({
  FFColor? legacyPenColor,
  FFColor? legacyBackgroundColor,
  FFColor? legacyExportBackgroundColor,
  FFDimensions? dimensions,
  $core.double? legacyStrokeWidth,
  FFColorValue? penColorValue,
  FFColorValue? backgroundColorValue,
  FFColorValue? exportBackgroundColorValue,
  FFDoubleValue? strokeWidthValue,
}) {
  final result = create();
  if (legacyPenColor != null) result.legacyPenColor = legacyPenColor;
  if (legacyBackgroundColor != null)
    result.legacyBackgroundColor = legacyBackgroundColor;
  if (legacyExportBackgroundColor != null)
    result.legacyExportBackgroundColor = legacyExportBackgroundColor;
  if (dimensions != null) result.dimensions = dimensions;
  if (legacyStrokeWidth != null) result.legacyStrokeWidth = legacyStrokeWidth;
  if (penColorValue != null) result.penColorValue = penColorValue;
  if (backgroundColorValue != null)
    result.backgroundColorValue = backgroundColorValue;
  if (exportBackgroundColorValue != null)
    result.exportBackgroundColorValue = exportBackgroundColorValue;
  if (strokeWidthValue != null) result.strokeWidthValue = strokeWidthValue;
  return result;
}