gpg --import <path to your private gpg.key>
gpg --full-generate-key
The recommended choices are:
extension DescribeDateTime on DateTime { | |
void describe() { | |
final now = DateTime.now(); | |
final difference = this.difference(DateTime(now.year, now.month, now.day)); | |
String description = switch (difference) { | |
Duration(inDays: 0) => 'today', | |
Duration(inDays: -1) => 'yesterday', | |
Duration(inDays: 1) => 'tomorrow', | |
Duration(inDays: int d, isNegative: false) => "$d days from now", |