DenomUnit constructor

DenomUnit({
  1. String? denom,
  2. int? exponent,
  3. Iterable<String>? aliases,
})

Implementation

factory DenomUnit({
  $core.String? denom,
  $core.int? exponent,
  $core.Iterable<$core.String>? aliases,
}) {
  final _result = create();
  if (denom != null) {
    _result.denom = denom;
  }
  if (exponent != null) {
    _result.exponent = exponent;
  }
  if (aliases != null) {
    _result.aliases.addAll(aliases);
  }
  return _result;
}