set_state_async 0.1.0 copy "set_state_async: ^0.1.0" to clipboard
set_state_async: ^0.1.0 copied to clipboard

retracted

A Flutter mixin for avoiding State.setState during build issue and improving performance.

About #

SetStateAsync is a mixin that defers multiple setState calls into one within the same event loop.

This approach helps reduce overhead when calling setState multiple times in quick succession, preventing the setState() or markNeedsBuild() called during build issue and improving performance.

Installation #

Run flutter pub add set_state_async to add this package to your project.

Usage #

Just add this mixin to your State class and call setStateAsync instead of setState. An optional callback can be passed if you need to perform changes just before rebuilding the widget.

For more information, please check example or API reference.

0
likes
0
points
360
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter mixin for avoiding State.setState during build issue and improving performance.

Repository (GitHub)
View/report issues

Topics

#set-state #async #state #performance #optimization

License

unknown (license)

Dependencies

flutter

More

Packages that depend on set_state_async