toVisibility

[ Function ]

public static toVisibility(
    value: string,
    defaultValue: Visibility | null = null
): Visibility | null;

Checks if a value is a visibility and returns it.

Parameter

Name

Type

Description

value

string

The value to convert.

defaultValue

Visibility, null

This value is returned if the first parameter is not valid. Null applies if this parameter is not passed.

Return value

Type

Description

Visibility, null

Returns the appropriate value or null in the event of an error.

toVisibility 1:

Available from 1.8