Skip to content

Instantly share code, notes, and snippets.

@Erinziyi
Last active March 14, 2019 06:01
Show Gist options
  • Select an option

  • Save Erinziyi/41b42b065aaffb2b5f8d824f49abb33d to your computer and use it in GitHub Desktop.

Select an option

Save Erinziyi/41b42b065aaffb2b5f8d824f49abb33d to your computer and use it in GitHub Desktop.
Parsing in Dart
main() {
int x = int.parse('12');
print(x*2);
double y = double.parse('12.2');
print(y);
String sample = 3.toString();
print (sample);
String sample1 = 'Hello';
String sample2 = 'Erin';
String sample3 = sample1 + sample2;
print(sample3);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment