builder<T> static method
Widget
builder<T>({})
Declarative builder helper returning a widget that executes a post-frame action and rebuilds with an AsyncSnapshot of PostFrameResult.
Implementation
static Widget builder<T>({
required FutureOr<T> Function() action,
required Widget Function(BuildContext, AsyncSnapshot<PostFrameResult<T>>)
builder,
List<ScrollController> scrollControllers = const [],
int maxWaitFrames = 5,
bool waitForEndOfFrame = true,
int endOfFramePasses = 2,
Duration? timeout,
bool runImmediately = true,
}) {
return _PostFrameBuilder<T>(
action: action,
builder: builder,
scrollControllers: scrollControllers,
maxWaitFrames: maxWaitFrames,
waitForEndOfFrame: waitForEndOfFrame,
endOfFramePasses: endOfFramePasses,
timeout: timeout,
runImmediately: runImmediately,
);
}