isEmpty property

bool isEmpty

Implementation

bool get isEmpty {
  switch (this) {
    case String s:
      return s.isEmpty;
    case RegExp r:
      return r.pattern.isEmpty;
    default:
      throw UnsupportedError('Pattern type not supported: $this');
  }
}