getCapitalized static method

String getCapitalized(
  1. String key, {
  2. String? fallbackValue,
  3. Map<String, dynamic>? attributes,
})

return a string resource capitalized.

Implementation

static String getCapitalized(String key,
    {String? fallbackValue, Map<String, dynamic>? attributes}) {
  return get(key,
      fallbackValue: fallbackValue,
      attributes: attributes,
      transform: Transform.capitalize);
}