Skip to content

Instantly share code, notes, and snippets.

@luizjacomn
Last active November 17, 2019 14:56
Show Gist options
  • Save luizjacomn/b9cd5ccb9d8c0e463f877d914fec393e to your computer and use it in GitHub Desktop.
Save luizjacomn/b9cd5ccb9d8c0e463f877d914fec393e to your computer and use it in GitHub Desktop.
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