PlaceholderDimensions constructor Null safety

const PlaceholderDimensions(
  1. {required Size size,
  2. required PlaceholderAlignment alignment,
  3. TextBaseline? baseline,
  4. double? baselineOffset}
)

Constructs a PlaceholderDimensions with the specified parameters.

The size and alignment are required as a placeholder's dimensions require at least size and alignment to be fully defined.

Implementation

const PlaceholderDimensions({
  required this.size,
  required this.alignment,
  this.baseline,
  this.baselineOffset,
}) : assert(size != null),
     assert(alignment != null);