StatelessBuilder class
A stateless utility Widget whose build method uses its builder callback to create the widget's child.
- Inheritance
-
- Object
- Widget
- StatelessWidget
- StatelessBuilder
Constructors
- StatelessBuilder(StatelessWidgetBuilder builder, {String? key, Ref? ref})
-
Creates a new StatelessBuilder instance.
const
Properties
- builder → StatelessWidgetBuilder
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String?
-
finalinherited
- ref → Ref?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context) → Widget -
Returns a single widget with the given
context
.override -
createNode(
) → StatelessNode< StatelessWidget> -
Returns a Node corresponding to this Widget at a particular location
in the Node tree.
inherited
-
matches(
Widget otherWidget) → bool -
Checks if two widgets match during a ReassemblableNode reassembly.
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