imt_para_origin method
Implementation
Function imt_para_origin(String template, String value) {
// Usage:TIM_t_para("已选:{{addType}}",'已选:$addType')(addType: addType)
final originTemplate = template.replaceAllMapped(
expForParameterOut, (Match m) => replaceParameterForTemplate(m));
final originKey = zhMapRevert[originTemplate] ??
getKeyFromMap(zhMap, originTemplate) ??
"";
final Function translatedValueFunction = t[originKey] ??
({
Object? option1,
Object? option2,
Object? option3,
Object? option4,
Object? option5,
Object? option6,
Object? option7,
Object? option8,
Object? option9,
Object? option10,
Object? option11,
Object? option12,
Object? option13,
Object? option14,
Object? option15,
Object? option16,
Object? option17,
Object? option18,
Object? option19,
Object? option20,
}) {
return value;
};
return translatedValueFunction;
}