Future<CGRect> get frame async { final result = await kMethodChannel .invokeMethod<Ref>('UIView::getFrame', {'__this__': this}); return CGRect()..refId = result?.refId; }