renderStyle method

TextStyle renderStyle(
  1. BuildContext context
)

Render style based on the block's type and inline styles

Implementation

TextStyle renderStyle(BuildContext context) {
  var textStyle = Theme.of(context).textTheme.bodyText1!;

  return textStyle.copyWith(
    fontWeight: fontWeight,
    fontStyle: fontStyle,
    decoration: decoration,
  );
}