void rectCompleter(Completer<Rect> completer, VoidPtr p) => completer.complete(Rect.fromPointer(p.cast<cvg.Rect>()));