Creates a paint value from a string representation.
Creates a paint value from a string representation. Recognizes strings representing Color, RadialGradient or LinearGradient. String specifying LinearGradient must begin with linear-gradient keyword and string specifying RadialGradient must begin with radial-gradient.