DefaultTextStyle constructor

DefaultTextStyle({
  1. required TextStyle style,
  2. required Widget child,
  3. TextAlign? textAlign,
  4. bool softWrap = true,
  5. TextOverflow? overflow,
  6. int? maxLines,
})

Implementation

DefaultTextStyle({
  required this.style,
  required this.child,
  this.textAlign,
  this.softWrap = true,
  this.overflow,
  this.maxLines,
}) : assert(maxLines == null || maxLines > 0);