textAlignTW function
Implementation
TextAlign? textAlignTW(List<String> params) {
Map<String, TextAlign> textAlignmentsTW = {
'text-left': TextAlign.left,
'text-center': TextAlign.center,
'text-right': TextAlign.right,
'text-justify': TextAlign.justify,
'text-start': TextAlign.start,
'text-end': TextAlign.end,
};
if (params.toSet().intersection(textAlignmentsTW.keys.toSet()).isEmpty) {
return null;
}
return textAlignmentsTW[
params.toSet().intersection(textAlignmentsTW.keys.toSet()).first];
}