regex property

String? get regex

The regular expression to be used when building the monitor command. When regex is supplied, server will send notifications which match the regex. If strict is true, then only those regex-matching notifications will be sent. If strict is false, then other 'control' notifications (e.g. the statsNotification) which don't necessarily match the regex will also be sent

Implementation

String? get regex => _regex;
set regex (String? r)

Implementation

set regex(String? r) {
  if (r != null && r.trim().isEmpty) {
    r = null;
  }
  _regex = r;
}