translateFunc property

String Function(String, String) translateFunc
getter/setter pair

UI labels translated function with 2 parameters name and defaultValue Declare name for what label needs to be translated in localization file, such as image_picker_select_images_title. Confirm "UI label strings (for localization)" section below for understanding usage.

Sample usage:

If using Intl, function like this: configs.translateFunc = (name, value) => Intl.message(value, name: name); If using GetX, function like this: configs.translateFunc = (name, value) => name.tr;

Implementation

late String Function(String, String) translateFunc;