xrange 0.0.2 xrange: ^0.0.2 copied to clipboard
Provdes a Range class, a contiguous set of values.
example/main.dart
import 'package:xrange/range.dart';
void main() {
final date1 = DateTime(2015);
final date2 = DateTime(2021);
final dates = Range<DateTime>.closed(date1, date2);
if (dates.contains(DateTime.now())) {
print('Hi, contemporary!');
} else {
print('Apparently, you are from the future!');
}
}