SubtitleStyle constructor

SubtitleStyle({
  1. TextStyle? style,
  2. Alignment alignment = Alignment.bottomCenter,
  3. TextAlign textAlign = TextAlign.center,
  4. EdgeInsetsGeometry padding = const EdgeInsets.all(20.0),
})

Implementation

SubtitleStyle({
  TextStyle? style,
  this.alignment = Alignment.bottomCenter,
  this.textAlign = TextAlign.center,
  this.padding = const EdgeInsets.all(20.0),
}) : this.style = style ??
          TextStyle(
            color: Colors.white,
            fontSize: 16,
            backgroundColor: Colors.black,
            height: 1.2,
          );