HelpSnippet.text constructor

HelpSnippet.text({
  1. required GlobalKey<State<StatefulWidget>> widgetKey,
  2. required String helpKey,
  3. required String helpText,
  4. double fontSize = 24.0,
  5. double height = 24.0,
  6. FontStyle fontStyle = FontStyle.italic,
  7. Color color = Colors.white,
})

Implementation

HelpSnippet.text(
    {required this.widgetKey,
    required this.helpKey,
    required String helpText,
    double fontSize = 24.0,
    this.height = 24.0,
    FontStyle fontStyle = FontStyle.italic,
    Color color = Colors.white})
    : help = Text(
        helpText,
        textAlign: TextAlign.center,
        style: TextStyle(
          fontSize: fontSize,
          fontStyle: fontStyle,
          color: color,
        ),
      );