create

abstract fun create(initialState: Boolean): T

Creates a new instance of VisibilityState with the given initial state.

Return

A new instance of VisibilityState with the specified initial state.

Parameters

initialState

The initial visibility state of the controller.