Skip to content

Instantly share code, notes, and snippets.

@friebetill
Created December 3, 2019 13:38
Show Gist options
  • Save friebetill/2d48b8bc99f9f046c1175d8f3f1d18e1 to your computer and use it in GitHub Desktop.
Save friebetill/2d48b8bc99f9f046c1175d8f3f1d18e1 to your computer and use it in GitHub Desktop.
Example of Darts DateTime ArgumentError
import 'dart:math';
void main() {
final hugeDuration = Duration(days: 4 * pow(2.5, 20).round());
print(DateTime.now().add(hugeDuration));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment