OverlayOptions class
Options for configuring the overlay display.
Constructors
- OverlayOptions({Duration? duration = const Duration(seconds: 3), OverlayStyle style = const OverlayStyle(), OverlayPosition position = OverlayPosition.center, bool autoHide = true})
-
Creates an OverlayOptions with the given parameters.
const
Properties
- autoHide → bool
-
Whether to automatically hide the overlay after the duration.
final
- duration → Duration?
-
How long to display the overlay. If null, the overlay will stay until manually hidden.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- position → OverlayPosition
-
The position of the overlay on each monitor.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → OverlayStyle
-
The style configuration for the overlay.
final
Methods
-
copyWith(
{Duration? duration, OverlayStyle? style, OverlayPosition? position, bool? autoHide}) → OverlayOptions - Creates a copy of this OverlayOptions with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override