isName static method

bool isName(
  1. String value
)

Check if name not contain special character like #$%*@!

Implementation

static bool isName(String value) =>
    !hasMatch(value, r'[!@#<>?":_`~;[\]\\|=+)(*&^%0-9-]');