textDecoration static method
none, underline, overline, lineThrough (strikethrough), or
true (struck through) / false (none).
Implementation
static String? textDecoration(Object? v) {
if (v is bool) return v ? 'lineThrough' : 'none';
if (v is! String) return null;
return switch (v.trim().toLowerCase()) {
'none' || 'false' || '' => 'none',
'underline' => 'underline',
'overline' => 'overline',
'linethrough' || 'line-through' || 'strikethrough' || 'true' => 'lineThrough',
_ => null,
};
}