PointerEvents enum

The pointer-events CSS property sets under what circumstances (if any) a particular graphic element can become the target of pointer events.

Read more: MDN pointer-events

Inheritance
Available extensions

Values

none → const PointerEvents

The element on its own is never the target of pointer events. However its subtree could be kept targetable by setting pointer-events to some other value. In these circumstances, pointer events will trigger event listeners on this parent element as appropriate on their way to or from the descendant during the event capture and bubble phases.

const PointerEvents('none')
auto → const PointerEvents

The element behaves as it would if the pointer-events property were not specified. In SVG content, this value and the value visiblePainted have the same effect.

const PointerEvents('auto')
visiblePainted → const PointerEvents

SVG only (experimental for HTML). The element can only be the target of a pointer event when the visibility property is set to visible and e.g., when a mouse cursor is over the interior (i.e., 'fill') of the element and the fill property is set to a value other than none, or when a mouse cursor is over the perimeter (i.e., 'stroke') of the element and the stroke property is set to a value other than none.

const PointerEvents('visiblePainted')
visibleFill → const PointerEvents

SVG only. The element can only be the target of a pointer event when the visibility property is set to visible and when e.g., a mouse cursor is over the interior (i.e., fill) of the element. The value of the fill property does not affect event processing.

const PointerEvents('visibleFill')
visibleStroke → const PointerEvents

SVG only. The element can only be the target of a pointer event when the visibility property is set to visible and e.g., when the mouse cursor is over the perimeter (i.e., stroke) of the element. The value of the stroke property does not affect event processing.

const PointerEvents('visibleStroke')
visible → const PointerEvents

SVG only (experimental for HTML). The element can be the target of a pointer event when the visibility property is set to visible and e.g., the mouse cursor is over either the interior (i.e., fill) or the perimeter (i.e., stroke) of the element. The values of the fill and stroke do not affect event processing.

const PointerEvents('visible')
painted → const PointerEvents

SVG only (experimental for HTML). The element can only be the target of a pointer event when e.g., the mouse cursor is over the interior (i.e., 'fill') of the element and the fill property is set to a value other than none, or when the mouse cursor is over the perimeter (i.e., 'stroke') of the element and the stroke property is set to a value other than none. The value of the visibility property does not affect event processing.

const PointerEvents('painted')
fill → const PointerEvents

SVG only. The element can only be the target of a pointer event when the pointer is over the interior (i.e., fill) of the element. The values of the fill and visibility properties do not affect event processing.

const PointerEvents('fill')
stroke → const PointerEvents

SVG only. The element can only be the target of a pointer event when the pointer is over the perimeter (i.e., stroke) of the element. The values of the stroke and visibility properties do not affect event processing.

const PointerEvents('stroke')
boundingBox → const PointerEvents

SVG only. The element can only be the target of a pointer event when the pointer is over the bounding box of the element.

const PointerEvents('bounding-box')
all → const PointerEvents

SVG only (experimental for HTML). The element can only be the target of a pointer event when the pointer is over the interior (i.e., fill) or the perimeter (i.e., stroke) of the element. The values of the fill, stroke, and visibility properties do not affect event processing.

const PointerEvents('all')
inherit → const PointerEvents
const PointerEvents('inherit')
initial → const PointerEvents
const PointerEvents('initial')
revert → const PointerEvents
const PointerEvents('revert')
revertLayer → const PointerEvents
const PointerEvents('revert-layer')
unset → const PointerEvents
const PointerEvents('unset')

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
value String
The css value
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

Constants

values → const List<PointerEvents>
A constant List of the values in this enum, in order of their declaration.