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

A dart equivalent of console.count() in JS. This can be used to check for unwanted re-renders inside the build method of a widget

fCount #

A Dart equivalent for console.count() in JavaScript. You can learn how it works on the web in the MDN docs

Available on pub.dev 🚀🚀

But why #

Using console.count() is a very handy way to check for unwanted renders in web projects. This is very useful for any kind of reactive framework.

How to use it #

Place fCount(*label_name*) inside any build function and check the logs. Every time the function is called, log prints the total no of times it has been executed. https://user-images.githubusercontent.com/13520364/181412051-98d29a3a-45ab-473c-8768-c4821a670b69.mov

6
likes
160
pub points
61%
popularity

Publisher

verified publisherchinmaykabi.com

A dart equivalent of console.count() in JS. This can be used to check for unwanted re-renders inside the build method of a widget

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

crypto, stack_trace

More

Packages that depend on f_count