getTitle static method

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

return a string resource in title case.

Implementation

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