invoke

operator fun invoke(attributeIndex: Int): PayPalButtonColor

Given an attributeIndex this will provide the correct PayPalButtonColor. If an invalid attributeIndex is provided then it will throw an IllegalStateException.

Throws

when an invalid index is provided.