Created
July 8, 2020 00:51
-
-
Save ialameh/09275311681e89d49ae161013d8c74e6 to your computer and use it in GitHub Desktop.
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
void main() { | |
String iconName(String filename) => "${filename.split('.').last}.png"; | |
print(iconName('program.exe')); | |
print(iconName('document.pdf')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment