DefaultTextStyle constructor Null safety

const DefaultTextStyle(
  1. {Key? key,
  2. required TextStyle style,
  3. TextAlign? textAlign,
  4. bool softWrap,
  5. TextOverflow overflow,
  6. int? maxLines,
  7. TextWidthBasis textWidthBasis,
  8. TextHeightBehavior? textHeightBehavior,
  9. required Widget child}
)

Implementation

const factory DefaultTextStyle(
    {final Key? key,
    required final TextStyle style,
    final TextAlign? textAlign,
    final bool softWrap,
    final TextOverflow overflow,
    final int? maxLines,
    final TextWidthBasis textWidthBasis,
    final TextHeightBehavior? textHeightBehavior,
    required final Widget child}) = _$DefaultTextStyle;