titleStyle method

TextStyle titleStyle(
  1. BuildContext context
)

Implementation

TextStyle titleStyle(BuildContext context) {
  switch (this) {
    case EmptyHierarchy.sm:
      return context.typography.textMdSemibold.copyWith(
          color: context.color.foreground(ForegroundColorType.primary));
    case EmptyHierarchy.md:
      return context.typography.textLgSemibold.copyWith(
          color: context.color.foreground(ForegroundColorType.primary));
    case EmptyHierarchy.lg:
      return context.typography.textXlSemibold.copyWith(
          color: context.color.foreground(ForegroundColorType.primary));
  }
}