getLocalizedPlaceholder method

String? getLocalizedPlaceholder(
  1. BuildContext context
)

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?;
}