getEmphasisedColor method

Color? getEmphasisedColor(
  1. BuildContext context, {
  2. FastButtonEmphasis? emphasis,
})

Implementation

Color? getEmphasisedColor(
  BuildContext context, {
  FastButtonEmphasis? emphasis,
}) {
  if (emphasis == FastButtonEmphasis.high) {
    return ThemeHelper.colors.getPrimaryColor(context);
  }

  final palette = ThemeHelper.getPaletteColors(context);

  return palette.gray.mid;
}