Readable constructor
Constructs a Readable instance with the given size
, type
, and
optional fractionDigits
.
size
: The numeric value to be formatted.type
: The unit of the value (e.g., KB, MB).fractionDigits
: The number of decimal places to include. Default is 1.
Implementation
const Readable(
this.size,
this.type, [
this.fractionDigits = 1,
]);