DefaultTextStyle({Key key, @required TextStyle style, TextAlign textAlign, bool softWrap: true, TextOverflow overflow: TextOverflow.clip, Widget child })

Creates a default text style for the given subtree.

Consider using DefaultTextStyle.merge to inherit styling information from a the current default text style for a given BuildContext.

Source

DefaultTextStyle({
  Key key,
  @required this.style,
  this.textAlign,
  this.softWrap: true,
  this.overflow: TextOverflow.clip,
  Widget child
}) : super(key: key, child: child) {
  assert(style != null);
  assert(softWrap != null);
  assert(overflow != null);
  assert(child != null);
}