Skip to content

Instantly share code, notes, and snippets.

@creativecreatorormaybenot
Created July 15, 2020 14:54
Show Gist options
  • Save creativecreatorormaybenot/461a20feb538a3c9d6fc71c1ab06f4d7 to your computer and use it in GitHub Desktop.
Save creativecreatorormaybenot/461a20feb538a3c9d6fc71c1ab06f4d7 to your computer and use it in GitHub Desktop.
prefer_adjacent_string_concatenation
void main() {
const a1 = '';
// Correct prefer_adjacent_string_concatenation lint.
print(a1 + '');
const a2 = Custom();
// Incorrect prefer_adjacent_string_concatenation lint.
print(a2 + '');
}
class Custom {
const Custom();
Custom operator +(dynamic other) => const Custom();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment