StreamComponentFactoryExtension extension

Extension on BuildContext for convenient access to StreamComponentBuilders.

{@tool snippet}

Access component builders from context:

final builders = context.streamComponentFactory;
final button = builders?.button?.call(context, props);

{@end-tool}

on

Properties

streamComponentFactory StreamComponentBuilders

Available on BuildContext, provided by the StreamComponentFactoryExtension extension

Returns the StreamComponentBuilders from the nearest StreamComponentFactory ancestor, or null if none exists.
no setter