derive method

  1. @override
Units derive(
  1. String fullPrefix,
  2. String abbrevPrefix,
  3. double conv
)
override

Derive MassUnits using this MassUnits object as the base.

Implementation

@override
Units derive(String fullPrefix, String abbrevPrefix, double conv) => MassUnits(
    '$fullPrefix$name',
    abbrev1 != null ? '$abbrevPrefix$abbrev1' : null,
    abbrev2 != null ? '$abbrevPrefix$abbrev2' : null,
    '$fullPrefix$singular',
    valueSI * conv,
    false,
    offset);