matchRegExp method

bool matchRegExp(
  1. String regExp
)

Implementation

bool matchRegExp(String regExp) => RegExp('^[$regExp]+\$').hasMatch(this);