isValidTextTextDecorationLineValue static method

bool isValidTextTextDecorationLineValue(
  1. String value
)

Implementation

static bool isValidTextTextDecorationLineValue(String value) {
  return value == 'underline' || value == 'overline' || value == 'line-through' || value == 'none';
}