I have a simple String-Extension which looks like this:
extension TranslationHelper on String {
String localized() {
return AppLocalizations(Locale('de', 'DE')).translate(this);
}
}
With this I am able to call .localized() on any String.
Problem: Flutter or VSCode is not auto-importing the file for me and also not suggesting it with a Quick-Fix. Importing the file manually is quite painful. Is this a bug or what am I missing here?
All other importing works perfectly fine...