mirror of
https://github.com/hanskokx/arcane_helper_utils.git
synced 2026-05-14 02:19:09 +02:00
v1.0.4
- Added `yesterday` and `tomorrow` extensions to `DateTime` Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -12,6 +12,12 @@ void main() {
|
||||
debugPrint("$today"); // true
|
||||
debugPrint("$notToday"); // false
|
||||
|
||||
final DateTime yesterday = DateTime(0).yesterday;
|
||||
final DateTime tomorrow = DateTime(0).tomorrow;
|
||||
|
||||
debugPrint("Yesterday: $yesterday");
|
||||
debugPrint("Tomorrow: $tomorrow");
|
||||
|
||||
// Strings
|
||||
const String? nullString = null;
|
||||
const String emptyString = " ";
|
||||
|
||||
Reference in New Issue
Block a user