matchesRegex method

bool matchesRegex(
  1. String pattern
)

Implementation

bool matchesRegex(String pattern) => RegExp(pattern).hasMatch(this);