ToolbarItem constructor

ToolbarItem({
  1. required String id,
  2. required int group,
  3. int type = 1,
  4. String tooltipsMessage = '',
  5. Widget iconBuilder(
    1. bool isHighlight
    )?,
  6. ToolbarItemValidator? validator,
  7. ToolbarItemHighlightCallback? highlightCallback,
  8. ToolbarItemEventHandler? handler,
  9. Widget itemBuilder(
    1. BuildContext context,
    2. EditorState editorState
    )?,
  10. bool isActive(
    1. EditorState editorState
    )?,
  11. Widget builder(
    1. BuildContext context,
    2. EditorState editorState,
    3. Color highlightColor,
    4. Color? iconColor,
    )?,
})

Implementation

ToolbarItem({
  required this.id,
  required this.group,
  this.type = 1,
  this.tooltipsMessage = '',
  this.iconBuilder,
  this.validator,
  this.highlightCallback,
  this.handler,
  this.itemBuilder,
  this.isActive,
  this.builder,
});