
Overview
DartArt is a collection of useful dart utils for all dart developers.
Features
BinarySizeclass, to convert bytes to human readable format
Usage
-
Add the dependency to your
pubspec.yamlfile
Recommend to use command line:With Flutter
flutter pub add dart_artWith 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