Dim constructor

const Dim(
  1. double? value, {
  2. String unit = '',
  3. bool important = false,
})

Creates a new dimension with optional unit and important flag.

Prefer the important getter unless a constant is required.

Implementation

const Dim(this.value, {this.unit = '', bool important = false})
  : isImportant = important;