getBackgroundColor method

Color getBackgroundColor(
  1. MouseState mouseState
)

Implementation

Color getBackgroundColor(MouseState mouseState) {
  if (mouseState.isMouseDown) return colors.mouseDown;
  if (mouseState.isMouseOver) return colors.mouseOver;
  return colors.normal;
}