Dimension.em constructor Null safety

  1. num _value

Set this CSS Dimension to the specified number of ems.

1em is equal to the current font size. (So 2ems is equal to double the font size). This is useful for producing website layouts that scale nicely with the user's desired font size.


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