translateWithoutContext method

String translateWithoutContext()

Implementation

String translateWithoutContext() {
  final BuildContext? context = navigator.navigatorKey.currentState?.context;
  return context != null
      ? Translate.of(context)?.translate(this) ?? toTitleCase()
      : toTitleCase();
}