describe method
Implementation
@override
ElementDataNullable describe(Element element, ElementData parentElementData) {
final Rect? elementRect = createIntersectedRect(element, parentElementData);
if (elementRect == null) {
return const ElementDataNullable(doNotRecordWireframeChildren: false);
}
if (elementRect.height < 0.0 || elementRect.width < 0.0) {
return const ElementDataNullable(doNotRecordWireframeChildren: true);
}
final androidView = element.renderObject as RenderAndroidView;
final androidViewId = androidView.controller.viewId;
final thisElementData = ElementData(
id: "id_0x${androidViewId.toRadixString(16)}",
type: element.widget.runtimeType.toString(),
rect: elementRect,
nativeViewId: androidViewId,
);
return ElementDataNullable(elementData: thisElementData);
}