Last active
November 17, 2019 14:56
-
-
Save luizjacomn/b9cd5ccb9d8c0e463f877d914fec393e 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
extension on String { | |
String concat(String toConcat) => this + toConcat; | |
} | |
main() { | |
String test = 'primeira'; | |
String expected = test.concat(' e segunda'); | |
assert('primeira e segunda' == expected); | |
print(expected); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment