0 purchases
dating
Dating #
A sexy library with useful extensions for DateTime class
Hecho en 🇵🇷 por Radamés J. Valentín Reyes
Importing #
import 'package:dating/dating.dart';
copied to clipboard
Examples #
isInRange extension. Returns true if this date is within the specified range.
DateTime from = DateTime(2001,9,11);
DateTime to = DateTime(2021,10,28);
DateTime selectedDate = DateTime(2016,5,27);
print(selectedDate.isInRange(from: from, to: to));
copied to clipboard
isInRange with onlyCheckDate optional parameter(false by default)
DateTime from = DateTime(2001,9,11);
DateTime to = DateTime(2021,10,28);
DateTime selectedDate = DateTime(2016,5,27);
print(selectedDate.isInRange(from: from, to: to, onlyCheckDate: true));
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.