background method

Color background(
  1. bool selected
)

Implementation

Color background(bool selected) =>
    selected ? selectedBackgroundColor : backgroundColor;