Readable constructor

const Readable(
  1. num size,
  2. String type, [
  3. int fractionDigits = 1
])

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,
]);