TranslateDelegate constructor

TranslateDelegate({
  1. required Translator translator,
})

Creates an instance of TranslateDelegate.

The translator parameter is used to set the localization values.

Implementation

TranslateDelegate({required Translator translator}) {
  Localize.localizeValue = translator.message();
}