ContextType enum
The different contexts a menu can appear in. Specifying 'all' is equivalent to the combination of all other contexts except for 'launcher'. The 'launcher' context is only supported by apps and is used to add menu items to the context menu that appears when clicking the app icon in the launcher/taskbar/dock/etc. Different platforms might put limitations on what is actually supported in a launcher context menu.
Values
- all → const ContextType
-
const ContextType('all')
- page → const ContextType
-
const ContextType('page')
- frame → const ContextType
-
const ContextType('frame')
- selection → const ContextType
-
const ContextType('selection')
- link → const ContextType
-
const ContextType('link')
- editable → const ContextType
-
const ContextType('editable')
- image → const ContextType
-
const ContextType('image')
- video → const ContextType
-
const ContextType('video')
- audio → const ContextType
-
const ContextType('audio')
- launcher → const ContextType
-
const ContextType('launcher')
- browserAction → const ContextType
-
const ContextType('browser_action')
- pageAction → const ContextType
-
const ContextType('page_action')
- action → const ContextType
-
const ContextType('action')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toJS → String
-
no setter
- value → String
-
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.
inherited
Static Methods
-
fromJS(
String value) → ContextType
Constants
-
values
→ const List<
ContextType> - A constant List of the values in this enum, in order of their declaration.