I am trying to localize my app in flutter. I created the needed string.arb files for the supported languages.
Why does AppLocalizations.of(context)
need a context?
I simply want to access the named strings in the files/locales files/classes.At some point in the app I build a List and fill it later via overriding some fields with a separate class.
However, this class has no context but I want to use localized strings in it.Can I write a method which gets me the Localization of whatever String I put in?