translateNullable method

String? translateNullable(
  1. String? value
)

Implementation

String? translateNullable(String? value) {
  if (value != null) {
    return translations[value] ?? value;
  }
  return null;
}