ParagraphConstraints constructor Null safety

const ParagraphConstraints(
  1. {required double width}
)

Creates constraints for laying out a paragraph.

The width argument must not be null.

Implementation

const ParagraphConstraints({
  required this.width,
}) : assert(width != null);