OverlayInterleaveManager class

Constructors

OverlayInterleaveManager()

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

enabled bool
When enabled, PopOverlay and s_modal register lightweight layer entries into a single root overlay host. This avoids z-order surprises when both systems are active by letting a shared sorter decide the final stack.
getter/setter pair
layers List<InterleavedOverlayLayer>
Current list of registered layers (sorted by activation/stack).
no setter

Static Methods

bringToFront({BuildContext? context}) → void
Bring the interleaved host to the front of the root overlay.
clearLayers() → void
Clear all interleaved layers.
containsLayer(String id) bool
Quick membership check by id.
ensureInstalled({BuildContext? context}) → void
Ensure the interleaved overlay host is installed in the root overlay.
registerLayer({required String id, required int activationOrder, required int stackLevel, required InterleavedLayerBuilder builder, BuildContext? context}) → void
Register or update a layer in the global interleaved host.
requestBringToFront({BuildContext? context}) → void
Schedule a bring-to-front request on the next frame.
resolveRootOverlay(BuildContext? context) OverlayState?
Resolve the best root overlay from a context or the app root.
teardownHost({bool clearLayers = true}) → void
Removes the shared host overlay entry and optionally clears layer state.
topBarrierOwnerLayerId({List<String> excludedPrefixes = const ['snackbar:'], List<String> preferredPrefixes = const [], bool preferOldest = true}) String?
Returns the top-most layer id that should own the dismiss barrier.
unregisterLayer(String id) → void
Remove a single layer by id.
unregisterWhere(bool predicate(String id)) → void
Remove any layer whose id matches the predicate.