DeltaAttributesOptions constructor

DeltaAttributesOptions({
  1. required double fontSize,
  2. required bool bold,
  3. required bool italic,
  4. required bool underline,
  5. required double lineSpacing,
  6. required bool strikethrough,
  7. required String? align,
  8. String fontFamily = "Arial",
  9. int? hexColor,
  10. int? hexBackgroundColor,
  11. String? link,
  12. int indent = -1,
})

Implementation

DeltaAttributesOptions({
  required this.fontSize,
  required this.bold,
  required this.italic,
  required this.underline,
  required this.lineSpacing,
  required this.strikethrough,
  required this.align,
  this.fontFamily = "Arial",
  this.hexColor,
  this.hexBackgroundColor,
  this.link,
  this.indent = -1,
})  : assert(lineSpacing <= 2.0 && lineSpacing >= 1.0),
      assert(indent == -1 || (indent > 0 && indent <= 4)),
      assert(align == null ||
          (align.equals('left') ||
              align.equals('right') ||
              align.equals('center') ||
              align.equals('justify')));