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.

Return

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

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