AsyncHookBuilder class

An experimental callback-based AsyncHookComponent.

Inheritance

Constructors

AsyncHookBuilder({required Future<Component> builder(BuildContext context), Key? key})
Creates a server-only async hook builder.
const

Properties

builder → Future<Component> Function(BuildContext context)
Builds the subtree with sequential hooks and awaited server work.
final
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

build(BuildContext context) → Future<Component>
Builds the server subtree, optionally calling hooks before and after await.
override
createElement() → Element
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