BloomIslandDefinition class
Specification of a registered island component definition.
Associates an island name with its descriptor builder callback and an optional fallback defaultStrategy.
final def = BloomIslandDefinition(
name: 'user-cart',
builder: (props) => CartWidget(userId: props['userId']),
defaultStrategy: HydrationStrategy.visible,
);
Constructors
- BloomIslandDefinition({required String name, required BloomIslandBuilder builder, HydrationStrategy defaultStrategy = HydrationStrategy.immediate})
-
Creates a new island definition.
const
Properties
- builder → BloomIslandBuilder
-
The factory callback creating the island's BloomNode descriptor tree.
final
- defaultStrategy → HydrationStrategy
-
The default hydration strategy applied when the placeholder element does not specify one.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The unique string identifier for this island (e.g.
'shopping-cart').final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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