f_count 0.2.0
f_count: ^0.2.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
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add f_countWith Flutter:
$ flutter pub add f_countThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
f_count: ^0.2.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:f_count/f_count.dart';