bloomIsland function
Helper function to construct a BloomIsland placeholder descriptor.
Convenience functional DSL alternative to BloomIsland(...).
final node = bloomIsland(
name: 'user-badge',
props: {'name': 'Alice'},
child: Span(text: 'Alice'),
);
Implementation
BloomIsland bloomIsland({
required String name,
BloomNode? child,
List<BloomNode>? children,
HydrationStrategy strategy = HydrationStrategy.immediate,
Map<String, dynamic>? props,
String? rootMargin,
String? media,
String tag = 'div',
String? className,
String? style,
Map<String, String>? attrs,
}) =>
BloomIsland(
name: name,
child: child,
children: children,
strategy: strategy,
props: props,
rootMargin: rootMargin,
media: media,
tag: tag,
className: className,
style: style,
attrs: attrs,
);