getRect static method
Get a GRect instance from the pool.
Implementation
static GRect getRect([
double x = 0,
double y = 0,
double w = 0,
double h = 0,
]) {
if (_rectangles.isEmpty) {
return GRect(x, y, w, h);
}
return _rectangles.removeLast()..setTo(x, y, w, h);
}