withRenderMode Method

Produce a copy of these ViewFlags with a different ViewFlags.renderMode.

withRenderMode(renderMode: RenderMode): ViewFlags

see ViewFlags.copy and ViewFlags.override to change multiple properties.

Parameter Type Description
renderMode RenderMode The new render mode.

Returns - ViewFlags

A new ViewFlags with the render mode changed as specified, or this if the render mode is already set to the requested value.

Defined in

Last Updated: 30 November, 2023