IconAffix class
Affix containing an icon.
- Inheritance
-
- Object
- MenuItemAffix<
ComponentFactory< BaseAffixComponent< ?>MenuItemAffix?> > - BaseMenuItemAffixModel
- IconAffix
Constructors
- IconAffix({required Icon icon, IconVisibility visibility = IconVisibility.visible, String? cssClass})
-
factory
- IconAffix.simple({required Icon icon, IconVisibility visibility = IconVisibility.visible, String cssClass = ''})
-
Creates a simple icon without any trigger action.
const
- IconAffix.withAction({required Icon icon, required IconAction action, required String ariaLabel, int? keyCode, bool shouldCloseMenuOnTrigger = false, IconVisibility visibility = IconVisibility.visible, String cssClass = ''})
-
Creates an icon that has a trigger action with a shortcut key.
const
Properties
- ariaLabel → String
-
final
-
componentFactory
→ ComponentFactory<
BaseAffixComponent< ?MenuItemAffix?> > -
no setteroverride
- cssClass → String
-
final
- hasAction → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Icon
-
final
- isVisible → bool
-
no setterinherited
- isVisibleOnHover → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldCloseMenuOnTrigger → bool
-
If true, close the menu upon triggering the
action
.final - visibility → IconVisibility
-
final
Methods
-
hasShortcutKeyCode(
int keyCode) → bool -
Returns true if the
keyCode
should trigger the shortcut action.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
triggerShortcutAction(
) → void -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited