Skip to content

Instantly share code, notes, and snippets.

@rubywai
Created February 4, 2026 17:35
Show Gist options
  • Select an option

  • Save rubywai/5524be4a991fff1efee3f1623bc396d0 to your computer and use it in GitHub Desktop.

Select an option

Save rubywai/5524be4a991fff1efee3f1623bc396d0 to your computer and use it in GitHub Desktop.
Dart type operators
//Type test operaators
void main() {
///type test operator
//is is!
//type casting
//smart cast (as)
//safe cast (is)
//string to number conversion
// parse tryParse
//number to string conversion
//100,000
double a = 10.12345678;
print(a.toStringAsFixed(10));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment