textOverflowTW function

TextOverflow? textOverflowTW(
  1. List<String> params
)

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];
}