getColor method
- Set<
WidgetState> states, - 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;
}