findTranslation<T> method
- T? finder(),
- T fallback, [
- String? locale
Implementation
T findTranslation<T>(T? Function(PackTranslation) finder, T fallback,
[String? locale]) =>
finder(getTranslation(locale)) ?? finder(getTranslation()) ?? fallback;