Created
December 3, 2019 13:38
-
-
Save friebetill/2d48b8bc99f9f046c1175d8f3f1d18e1 to your computer and use it in GitHub Desktop.
Example of Darts DateTime ArgumentError
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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