OverlayManager class
The OverlayManager
class provides a simplified interface for managing overlays using the Overlayer
class.
To use this class, you need to import the OverlayManager
class from the systems/overlay_manager.dart
file.
This class provides static methods for showing and dismissing overlays.
Example
import 'systems/overlay_manager.dart';
// Show an overlay
OverlayManager.show(
child: YourOverlayWidget(),
);
// Dismiss the overlay
OverlayManager.dismissOverlay();
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
inherited
Static Properties
Static Methods
-
dismissOverlay(
) → void - Dismisses the currently active overlay.
-
show(
{required Widget child, int backgroundColor = 0x42000000, int seconds = 0, bool clickClose = false, bool allowClick = false, bool ignoreContentClick = false, bool crossPage = true, int animationMilliseconds = 200, int animationReverseMilliseconds = 200, BackButtonBehaviorChecker backButtonBehavior = BackButtonBehaviorChecker.none, void cancelFunc()?}) → void -
Shows an overlay with the provided
child
widget.