TextFormatTool constructor

const TextFormatTool({
  1. Key? key,
  2. required dynamic onTextFormatEdited(
    1. bool bold,
    2. bool italic
    ),
  3. required dynamic onTextAlignEdited(
    1. TextAlign textAlign
    ),
  4. required dynamic onCapsLockToggle(
    1. bool caps
    ),
  5. TextAlign textAlign = TextAlign.left,
  6. bool bold = false,
  7. bool italic = false,
  8. bool caps = false,
})

Implementation

const TextFormatTool({
  super.key,
  required this.onTextFormatEdited,
  required this.onTextAlignEdited,
  required this.onCapsLockToggle,
  this.textAlign = TextAlign.left,
  this.bold = false,
  this.italic = false,
  this.caps = false,
});