Created
July 29, 2020 15:13
-
-
Save 0xabdou/d1ae7e15cd6f89bf72852c6765c0be1b to your computer and use it in GitHub Desktop.
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
void main() { | |
final json = <String, dynamic>{ | |
'price1': 1, | |
'price2': 1.1, | |
}; | |
final price1 = double.parse(json['price1'].toString()); | |
final price2 = double.parse(json['price2'].toString()); | |
print(price1); | |
print(price2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment