UEditorBlock constructor

UEditorBlock({
  1. required UBlockType type,
  2. URichTextController? controller,
  3. FocusNode? focusNode,
  4. String? imageUrl,
  5. String? imageAlt,
  6. double? imageWidth,
  7. TextAlign align = TextAlign.start,
  8. int indent = 0,
  9. bool checked = false,
  10. String? language,
  11. UTableData? table,
})

Implementation

UEditorBlock({
  required this.type,
  this.controller,
  this.focusNode,
  this.imageUrl,
  this.imageAlt,
  this.imageWidth,
  this.align = TextAlign.start,
  this.indent = 0,
  this.checked = false,
  this.language,
  this.table,
}) : id = "b${DateTime.now().microsecondsSinceEpoch}_${_seq++}";