foregroundColorOf method

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

Implementation

Color foregroundColorOf(BuildContext context, bool isSelected) =>
    foregroundColor?.call(isSelected) ??
    (isSelected ? context.colors.primary : context.colors.textPrimary);