textStyle method

TextStyle textStyle(
  1. BuildContext context
)

Implementation

TextStyle textStyle(BuildContext context) {
  return type == ButtonType.normal
      ? Theme.of(
          context,
        ).textTheme.bodyMedium!.copyWith(fontWeight: FontWeight.bold)
      : Theme.of(context).textTheme.bodyMedium!;
}