kilobyte

pub package Build Status Coverage Status

Cross-platform human-readable file size.

Warning: This is not an official Google or Dart project.

Installation

dependencies:
  kilobyte: ^0.1.0

Usage

Use the Size class similar to how you would the Duration class from the core libraries:

final size = new Size(gigabyte: 1, megabytes: 500);
print(size); // 1.50 Gb

Libraries

kilobyte