FeedbackStrings.auto constructor
FeedbackStrings.auto()
Create FeedbackStrings with automatic language detection Detects the device language and returns appropriate translations
Implementation
factory FeedbackStrings.auto() {
final translations = LocalizationService.getTranslations();
return FeedbackStrings(
pageTitle: translations['pageTitle']!,
feedbackInputLabel: translations['feedbackInputLabel']!,
feedbackInputHint: translations['feedbackInputHint']!,
feedbackInputValidationError: translations['feedbackInputValidationError']!,
submitButtonLabel: translations['submitButtonLabel']!,
sentSuccessfully: translations['sentSuccessfully']!,
sendError: translations['sendError']!,
);
}