OverlayScope class
A component that registers its child with _OverlayScopeRegistry.
This component does not render anything itself but allows its child to be rendered in a different part of the DOM tree. It is used to scope overlays to a specific part of the application, allowing for better organization and management of overlays.
Example
OverlayScope(
id: 'my-scope',
child: MyComponent(),
);
Constructors
- OverlayScope({Key? key, required Component child, required String id})
-
A component that registers its child with
_OverlayScopeRegistry.const
Properties
Methods
-
createElement(
) → Element -
Creates a
StatefulElementto manage this component's location in the tree.inherited -
createState(
) → State< OverlayScope> - Creates the mutable state for this component at a given location in the tree.
-
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