streak_calculator 0.2.1
streak_calculator: ^0.2.1 copied to clipboard
A high-performance Dart package for streak tracking—daily, weekly, or monthly. Supports custom goals, flexible week starts, and current & best streaks.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add streak_calculator
With Flutter:
$ flutter pub add streak_calculator
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
streak_calculator: ^0.2.1
Alternatively, 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:streak_calculator/streak_calculator.dart';