get

operator fun Palette.get(target: Target): Palette.Swatch?

Returns the selected swatch for the given target from the palette, or null if one could not be found.

This operator function allows indexed access to palette swatches using bracket notation.

Return

The selected Swatch for the given target from the palette, or null if not found.

Parameters

target

The Target selection.

See also


operator fun Palette.get(target: SwatchTarget): Palette.Swatch?

Returns the selected swatch for the given target from the palette, or null if one could not be found.

Return

The selected swatch for the given target from the palette, or null.

Parameters

target

The target selection.

See also