withRenderMode Method

Produce a copy of these ViewFlags with a different renderMode.

withRenderMode(renderMode: RenderMode): ViewFlags

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

@see copy and 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: 21 November, 2024