surface property

Color get surface

Returns the appropriate surface color for the current brightness.

Implementation

Color get surface => this == Brightness.light
    ? ChipColors.lightSurface
    : ChipColors.darkSurface;