banner

Overview

DartArt is a collection of useful dart utils for all dart developers.

Features

  • BinarySize class, to convert bytes to human readable format

Usage

  1. Add the dependency to your pubspec.yaml file
    Recommend to use command line:

    With Flutter

    flutter pub add dart_art
    

    With Dart

    dart pub add dart_art
    
  2. Import library

    import 'package:dart_art/dart_art.dart';
    
  3. Use like examples

    BinarySize:

    var size = BinarySize()..bytesCount = 1024;
    
    print(size.displayText); // 1.00 KB
    

Contributors

Contributors

Star History

Star History Chart

Libraries

dart_art
A lot of useful tools for Dart developers.
units/binary_size