Fragment class
A utility component that renders its children without any wrapper element.
This is meant to be used in places where you want to render multiple components, but only a single component is allowed by the API.
- Inheritance
-
- Object
- Component
- ProxyComponent
- Fragment
Constructors
-
Fragment.new({required List<
Component> ? children, Key? key})
Properties
- child → Component?
-
finalinherited
-
children
→ List<
Component> ? -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one component replaces another component in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → ProxyElement -
Inflates this configuration to a concrete instance.
inherited
-
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