getColor method

Color getColor(
  1. Set<WidgetState> states,
  2. ZetaColors colors
)

Get color of breadcrumb based on state.

Implementation

Color getColor(Set<WidgetState> states, ZetaColors colors) {
  if (states.contains(WidgetState.hovered)) {
    return colors.primitives.blue;
  }
  if (isSelected) return colors.primitives.pure.shade1000;
  return colors.mainSubtle;
}