SpotlightHole class

Represents a transparent hole in the spotlight overlay.

Holes allow specific UI elements to remain visible and interactive while the rest of the screen is dimmed.

Constructors

SpotlightHole({required Rect rect, required Path path, bool allowTouchThrough = true})
Creates a spotlight hole with the given rect and path.
const

Properties

allowTouchThrough bool
Whether touches inside this hole pass through to widgets beneath.
final
hashCode int
The hash code for this object.
no setteroverride
path Path
The path shape of this hole.
final
rect Rect
The bounding rectangle of this hole.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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