1 // Copyright 2015-present 650 Industries. All rights reserved.
2 package host.exp.exponent.utils
3 
4 import android.graphics.Color
5 import java.lang.Exception
6 
7 object ColorParser {
isValidnull8   @JvmStatic fun isValid(color: String?): Boolean {
9     return try {
10       Color.parseColor(color)
11       true
12     } catch (e: Exception) {
13       false
14     }
15   }
16 }
17