Experience Dart’s coding aesthetics here
LGPL-2.1 License
DartArt
is a collection of useful dart utils for all dart developers.
BinarySize
class, to convert bytes to human readable formatAdd 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
Import library
import 'package:dart_art/dart_art.dart';
Use like examples
BinarySize
:
var size = BinarySize()..bytesCount = 1024;
print(size.displayText); // 1.00 KB