colorIn method

Color colorIn(
  1. NmColors c
)

Colour of the insight's type in the theme c.

Implementation

Color colorIn(NmColors c) => switch (type) {
  NmXRayInsightType.warning => c.danger,
  NmXRayInsightType.opportunity => c.success,
  NmXRayInsightType.ethical => const Color(0xFF9C27B0),
  NmXRayInsightType.informational => c.brand,
  NmXRayInsightType.stale => c.warning,
};