toFlexLayout method
Convert to RenderFlexLayout
Implementation
RenderFlexLayout toFlexLayout() {
RenderFlexLayout flexLayout = RenderFlexLayout(
renderStyle: renderStyle,
);
copyWith(flexLayout);
flexLayout.addAll(detachChildren());
return flexLayout;
}