StateRebuilderExtension<T extends Object> extension

Extension on Injected<T?> adding safer update & rich builder helpers.

on

Methods

builder(Widget builder(), {void initState()?, void onSetState(SnapState<T?> state)?, void onAfterBuild()?, void dispose()?, ShouldRebuild? shouldRebuild, Object? watch()?, String? debugPrintWhenRebuild, String? tag}) Widget

Available on Injected<T?>, provided by the StateRebuilderExtension extension

Simple builder without passing state.
builderData<R>(Widget builder(R data), {Widget onWaiting()?, Widget onError(dynamic error)?, void initState()?, void onSetState(SnapState<T?> state)?, void onSetStateData(R data)?, void onAfterBuild()?, void dispose()?, bool shouldRebuild(SnapState, SnapState)?, Object? watch()?, String? debugPrintWhenRebuild, String? tag}) Widget

Available on Injected<T?>, provided by the StateRebuilderExtension extension

Data builder handling waiting/error/data states uniformly.
builderState(Widget builder(SnapState<T?> state), {void initState()?, void onSetState(SnapState<T?> state)?, void onAfterBuild()?, void dispose()?, ShouldRebuild? shouldRebuild, Object? watch()?, String? debugPrintWhenRebuild, String? tag}) Widget

Available on Injected<T?>, provided by the StateRebuilderExtension extension

Builder that exposes SnapState.
update<R extends T?>(dynamic mutator(R s), {bool shouldNotify = true, String? tag}) → void

Available on Injected<T?>, provided by the StateRebuilderExtension extension

Safer update for nullable injected types. Always specify the generic parameter explicitly matching T?.