ViewCollection class
A collection of sibling Views.
This widget can only be used in places were a View widget is allowed, i.e. in a non-rendering zone of the widget tree. In practical terms, it can be used at the root of the widget tree outside of any View widget, as a child to a another ViewCollection, or in the ViewAnchor.view slot of a ViewAnchor widget. It is not required to be a direct child of those widgets; other non-RenderObjectWidgets may appear in between the two (such as an InheritedWidget).
Similarly, the views children of this widget must be Views, but they may be wrapped in additional non-RenderObjectWidgets (e.g. InheritedWidgets).
See also:
- WidgetsBinding for an explanation of rendering and non-rendering zones.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- ViewCollection
Constructors
-
ViewCollection({Key? key, required List<
Widget> views}) -
Creates a ViewCollection widget.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
views
→ List<
Widget> -
The View descendants of this widget.
no setter
Methods
-
createElement(
) → Element -
Inflates this configuration to a concrete instance.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited