Size.fromWidth constructor Null safety

const Size.fromWidth(
  1. double width
)

Creates a Size with the given width and an infinite height.

Implementation

const Size.fromWidth(double width) : super(width, double.infinity);