ContentBlockerAction constructor

ContentBlockerAction({
  1. required ContentBlockerActionType type,
  2. String? selector,
})

Implementation

ContentBlockerAction(
    {required ContentBlockerActionType type, String? selector}) {
  this.type = type;
  if (this.type == ContentBlockerActionType.CSS_DISPLAY_NONE) {
    assert(selector != null);
  }
  this.selector = selector;
}