titleStyle method
Implementation
TextStyle? titleStyle(BuildContext context) {
final theme = Theme.of(context);
final color = theme.colorScheme.onSurface;
return isExpressive
? theme.textTheme.titleMedium?.copyWith(
color: color,
fontWeight: FontWeight.w600,
)
: theme.textTheme.titleSmall?.copyWith(color: color);
}