tr method

String tr(
  1. String key
)

Implementation

String tr(String key) {
  try {
    return watch<LocalizationCubit>().translate(key);
  } catch (_) {}
  return read<LocalizationCubit>().translate(key);
}