getLocalizedPlaceholder method
Implementation
String? getLocalizedPlaceholder(BuildContext context) {
final locale = Localizations.localeOf(context).languageCode;
if (placeholder is Map<String, dynamic>) {
return placeholder[locale] ?? placeholder['en'] ?? placeholder.values.first;
}
return placeholder as String?;
}