textOverflowTW function
Implementation
TextOverflow? textOverflowTW(List<String> params) {
Map<String, TextOverflow> textOverflows = {
'text-fade': TextOverflow.fade,
'text-ellipsis': TextOverflow.ellipsis,
'text-clip': TextOverflow.clip,
'text-visible': TextOverflow.visible,
};
if (params.toSet().intersection(textOverflows.keys.toSet()).isEmpty) {
return null;
}
return textOverflows[
params.toSet().intersection(textOverflows.keys.toSet()).first];
}