Size.fromWidth constructor

const Size.fromWidth(double width)

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

Implementation

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