Created
June 22, 2018 21:11
-
-
Save zolotyh/b90b0a3fed3170363eb6eca8cfb95577 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
import 'dart:async'; | |
import 'dart:collection'; | |
void main(){ | |
final a = <dynamic>['1', '2']; | |
print(a as List<String>); | |
} |
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
import 'dart:async'; | |
import 'dart:collection'; | |
void main(){ | |
final a = <dynamic>['1', '2']; | |
print((a as List).cast<String>()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment