dart_art 0.1.0+1 dart_art: ^0.1.0+1 copied to clipboard
Experience Dart’s coding aesthetics here, which contains lots of useful utils.
Overview #
DartArt
is a collection of useful dart utils for all dart developers.
Features #
BinarySize
class, to convert bytes to human readable format
Usage #
-
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
-
Import library
import 'package:dart_art/dart_art.dart';
-
Use like examples
BinarySize
:var size = BinarySize()..bytesCount = 1024; print(size.displayText); // 1.00 KB