HoverHeading constructor

HoverHeading(
  1. String text, {
  2. TextAlign? textAlign,
  3. double? fontSize,
  4. double? bottomPadding,
  5. double? topPadding,
  6. Color? color,
  7. FontWeight? fontWeight = FontWeight.bold,
  8. FontStyle? fontStyle = FontStyle.normal,
})

Implementation

HoverHeading(
  String text, {
  final TextAlign? textAlign,
  final double? fontSize,
  final double? bottomPadding,
  final double? topPadding,
  final Color? color,
  final FontWeight? fontWeight: FontWeight.bold,
  final FontStyle? fontStyle: FontStyle.normal,
}) : super(
        text,
        textAlign: textAlign ?? TextAlign.center,
        topPadding: topPadding ?? 8.0,
        bottomPadding: bottomPadding ?? 8.0,
        color: color,
        fontWeight: fontWeight ?? FontWeight.bold,
        fontSize: fontSize ?? 16.0,
        fontStyle: fontStyle,
      );