hexIntoColorModel method

Future<List<ColorNameModel>?> hexIntoColorModel(
  1. String value
)

Implementation

Future<List<ColorNameModel>?> hexIntoColorModel(String value) async {
  try {
    return await _apiService.getColorName(value.removeHexPrefix());
  } catch (e) {
    if (kDebugMode) {
      print("Error: $e");
    }
    return null;
  }
}