match method Null safety

bool match(
  1. dynamic value,
  2. dynamic regexp
)

Checks if string matches a regular expression

  • value a string value to match
  • regexp a regular expression string Returns true if the value matches regular expression and false otherwise.