rebuildcop 0.3.0
rebuildcop: ^0.3.0 copied to clipboard
Catch unnecessary widget rebuilds in Flutter: a Dart test helper that fails widget tests over a measured rebuild budget. Headless, no device, no probes.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add rebuildcopThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
rebuildcop: ^0.3.0Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:rebuildcop/rebuildcop.dart';