post_frame/post_frame library
frame package
This library exports all public APIs for the frame package.
Classes
- PostFrame
- Utility entry point for scheduling work after the initial frame and (optionally) after one or more end-of-frame passes and scroll metric stabilization.
- PostFramePredicates
- Common predicates for conditional PostFrame execution.
- PostFrameRepeater
- Controller for a repeating post-frame action.
-
PostFrameResult<
T> - Represents the outcome of a post-frame scheduled task.
-
PostFrameTask<
T> - Handle returned by PostFrame.run enabling cancellation and exposing the eventual PostFrameResult.
Extensions
- PostFrameContext on BuildContext
- Convenient BuildContext extensions for PostFrame operations.
Typedefs
- PostFrameErrorHandler = void Function(Object error, StackTrace stackTrace, String operation)
- Optional global error handler for all PostFrame operations. If set, this will be invoked whenever a PostFrame action throws an error.
- PostFramePredicate = bool Function()
-
Optional predicate function to determine if a PostFrame action should execute.
Return
trueto proceed with execution,falseto skip.