backgroundColorOf method

Color backgroundColorOf(
  1. BuildContext context,
  2. bool isSelected
)

Implementation

Color backgroundColorOf(BuildContext context, bool isSelected) =>
    backgroundColor?.call(isSelected) ??
    (isSelected
        ? context.colors.primary.withValues(alpha: 0.1)
        : Colors.transparent);