getTextStyle method

  1. @override
TextStyle? getTextStyle(
  1. BuildContext context
)
override

Implementation

@override
TextStyle? getTextStyle(BuildContext context) {
  final style = Theme.of(context).textTheme.labelLarge;
  final fontSize = Typography.maybeOf(context)?.labelLarge;
  return fontSize != null ? style?.copyWith(fontSize: fontSize) : style;
}