TextNodePatch constructor

const TextNodePatch({
  1. required NodeId id,
  2. CommonNodePatch? common,
  3. PatchField<String> text = const PatchField<String>.absent(),
  4. PatchField<Size> size = const PatchField<Size>.absent(),
  5. PatchField<double> fontSize = const PatchField<double>.absent(),
  6. PatchField<Color> color = const PatchField<Color>.absent(),
  7. PatchField<TextAlign> align = const PatchField<TextAlign>.absent(),
  8. PatchField<bool> isBold = const PatchField<bool>.absent(),
  9. PatchField<bool> isItalic = const PatchField<bool>.absent(),
  10. PatchField<bool> isUnderline = const PatchField<bool>.absent(),
  11. PatchField<String?> fontFamily = const PatchField<String?>.absent(),
  12. PatchField<double?> maxWidth = const PatchField<double?>.absent(),
  13. PatchField<double?> lineHeight = const PatchField<double?>.absent(),
})

Implementation

const TextNodePatch({
  required super.id,
  super.common,
  this.text = const PatchField<String>.absent(),
  this.size = const PatchField<Size>.absent(),
  this.fontSize = const PatchField<double>.absent(),
  this.color = const PatchField<Color>.absent(),
  this.align = const PatchField<TextAlign>.absent(),
  this.isBold = const PatchField<bool>.absent(),
  this.isItalic = const PatchField<bool>.absent(),
  this.isUnderline = const PatchField<bool>.absent(),
  this.fontFamily = const PatchField<String?>.absent(),
  this.maxWidth = const PatchField<double?>.absent(),
  this.lineHeight = const PatchField<double?>.absent(),
});