Created
February 4, 2026 17:35
-
-
Save rubywai/5524be4a991fff1efee3f1623bc396d0 to your computer and use it in GitHub Desktop.
Dart type operators
This file contains hidden or 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
| //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