Dimension.px constructor Null safety

Dimension.px(
  1. num _value
)

Set this CSS Dimension to a pixel value.

Implementation

Dimension.px(this._value) : _unit = 'px';