Declare Variables with Dynamic Keyword in Dart
void main() { dynamic myVariable = 20; print(“my variable: $myVariable”); myVariable = 4.5; print(“my variable: $myVariable”); myVariable = true; print(“my variable: $myVariable”); myVariable = “acc1”; print(“my variable: $myVariable”); myVariable = …
Declare Variables with Dynamic Keyword in Dart Read More