ToolbarItem class
Constructors
- ToolbarItem.new({required String id, required int group, int type = 1, String tooltipsMessage = '', Widget iconBuilder(bool isHighlight)?, ToolbarItemValidator? validator, ToolbarItemHighlightCallback? highlightCallback, ToolbarItemEventHandler? handler, Widget itemBuilder(BuildContext context, EditorState editorState)?, bool isActive(EditorState editorState)?, Widget builder(BuildContext context, EditorState editorState, Color highlightColor, Color? iconColor, ToolbarTooltipBuilder? tooltipBuilder)?})
- ToolbarItem.divider()
-
factory
Properties
- builder → Widget Function(BuildContext context, EditorState editorState, Color highlightColor, Color? iconColor, ToolbarTooltipBuilder? tooltipBuilder)?
-
final
- group → int
-
final
- handler → ToolbarItemEventHandler?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- highlightCallback → ToolbarItemHighlightCallback?
-
final
- iconBuilder → Widget Function(bool isHighlight)?
-
final
- id → String
-
final
- isActive ↔ bool Function(EditorState editorState)?
-
getter/setter pair
- itemBuilder → Widget Function(BuildContext context, EditorState editorState)?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tooltipsMessage → String
-
final
- type → int
-
final
- validator → ToolbarItemValidator?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override