Creates a DynamicColor with the specified red r, green g, blue b, and optional opacity values.
DynamicColor({this.r, this.g, this.b, this.opacity});