DeltaAttributesOptions.common constructor

DeltaAttributesOptions.common({
  1. bool? bold,
  2. bool? italic,
  3. bool? underline,
  4. bool? automaticIndent,
  5. int? hexColor,
  6. int? hexBackgroundColor,
  7. String? rgbBackground,
  8. String? fontFamily,
  9. String? align,
  10. double? lineSpacing,
  11. double? fontSize,
})

Implementation

factory DeltaAttributesOptions.common({
  bool? bold,
  bool? italic,
  bool? underline,
  bool? automaticIndent,
  int? hexColor,
  int? hexBackgroundColor,
  String? rgbBackground,
  String? fontFamily,
  String? align,
  double? lineSpacing,
  double? fontSize,
}) {
  return DeltaAttributesOptions(
    align: align ?? "left",
    bold: bold ?? false,
    italic: italic ?? false,
    strikethrough: false,
    indent: -1,
    link: null,
    lineSpacing: lineSpacing ?? 1.0,
    fontFamily: fontFamily ?? 'Arial',
    fontSize: fontSize ?? 12,
    hexColor: hexColor,
    hexBackgroundColor: hexBackgroundColor,
    underline: underline ?? false,
  );
}