toReadableBytes property

Readable toReadableBytes

Converts the number to a human-readable byte format.

Example:

Readable readableBytes = 2048.toReadableBytes;
print(readableBytes); // Output: 2.00 KB

Implementation

Readable get toReadableBytes => ByteUnits.auto.read(this?.length);