DeltaAttributesOptions.common constructor
DeltaAttributesOptions.common({})
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,
);
}