PaintPatternPredicate typedef

PaintPatternPredicate = bool Function(Symbol methodName, List arguments)

Signature for the PaintPattern.something and PaintPattern.everything predicate argument.

Used by the paints matcher.

The methodName argument is a Symbol, and can be compared with the symbol literal syntax, for example:

if (methodName == #drawCircle) {
  // ...
}

Implementation

typedef PaintPatternPredicate = bool Function(Symbol methodName, List<dynamic> arguments);