Rule class

A rule defining the element filtering, replacement and appending action.

Constructors

Rule(String name, {List<String>? filters, FilterFn? filterFn, ReplacementFn? replacement, AppendFn? append})

Properties

append AppendFn?
Function for appending content.
final
filterFn FilterFn?
Function for building complex element filter logic.
final
filters List<String>?
A list of element names which should be selected, e.g. 'aside'
final
hashCode int
The hash code for this object.
no setteroverride
name String
Unique rule name.
final
replacement ReplacementFn?
Function for doing the content replacing logic.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

addIgnore(List<String> names) → void
addRules(List<Rule> rules) → void
findRule(Node node) Rule