This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
typedef PeriodicCallback = Future<Duration?> Function( | |
Periodic periodic, | |
); | |
/// The [Periodic] class is a wrapper around the [Timer] class that allows you | |
/// to run a timer periodically with a variable duration. It allows for a bit | |
/// more control over a periodic run. | |
/// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This command counts the total number of commits in the current Git repository up to the current HEAD. | |
# The `HEAD` pointer can be substituted with a specific commit hash or branch name to count up to that point. | |
# | |
# Usage Example: This command is particularly useful in scenarios such as automatically incrementing | |
# the build number in iOS or Android app projects. | |
git rev-list --count HEAD |