Information constructor

Information({
  1. dynamic bits,
  2. dynamic B,
  3. dynamic KiB,
  4. dynamic MiB,
  5. dynamic GiB,
  6. dynamic TiB,
  7. double uncert = 0.0,
})

Constructs an Information object with bits, bytes (B), kibibytes (KiB), mebibytes (MiB), gibibytes (GiB), or tebibytes (TiB). Optionally specify a relative standard uncertainty.

Implementation

Information(
    {dynamic bits,
    dynamic B,
    // ignore:non_constant_identifier_names
    dynamic KiB,
    // ignore:non_constant_identifier_names
    dynamic MiB,
    // ignore:non_constant_identifier_names
    dynamic GiB,
    // ignore:non_constant_identifier_names
    dynamic TiB,
    double uncert = 0.0})
    : super(
          bits ?? (B ?? (KiB ?? (MiB ?? (GiB ?? (TiB ?? 0.0))))),
          B != null
              ? Information.bytes
              : (KiB != null
                  ? Information.kibibytes
                  : (MiB != null
                      ? Information.mebibytes
                      : (GiB != null
                          ? Information.gibibytes
                          : (TiB != null
                              ? Information.tebibytes
                              : Information.bits)))),
          uncert);