clipRRect method
Reduces the clip region to the intersection of the current clip and the given rounded rectangle.
If doAntiAlias
is true, then the clip will be anti-aliased.
If multiple draw commands intersect with the clip boundary, this can result in incorrect blending at the clip boundary. See saveLayer for a discussion of how to address that and some examples of using clipRRect.
Implementation
void clipRRect(RRect rrect, {bool doAntiAlias = true}) {
assert(_rrectIsValid(rrect));
assert(doAntiAlias != null);
_clipRRect(rrect._value32, doAntiAlias);
}