drawRRect method Null safety

void drawRRect(
  1. RRect rrect,
  2. Paint paint
)

Draws a rounded rectangle with the given Paint. Whether the rectangle is filled or stroked (or both) is controlled by Paint.style.

Implementation

void drawRRect(RRect rrect, Paint paint) {
  assert(_rrectIsValid(rrect));
  assert(paint != null);
  _drawRRect(rrect._getValue32(), paint._objects, paint._data);
}