Information constructor
Information({
- dynamic bits,
- dynamic B,
- dynamic KiB,
- dynamic MiB,
- dynamic GiB,
- dynamic TiB,
- 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);