highlight method

Color highlight(
  1. HighlightType type
)

Implementation

Color highlight(HighlightType type) => {
      HighlightType.check: check,
      HighlightType.checkmate: checkmate,
      HighlightType.previous: previous,
      HighlightType.selected: selected,
      HighlightType.premove: premove,
    }[type]!;