text method

String text(
  1. String key
)

Text related to localised key. In case of entry won't found, will return back key as text.

Implementation

String text(String key) {
  dynamic value = _entries![key];
  return (value != null && value.toString().isNotEmpty) ? value : key;
}