human_file_size 0.6.0 human_file_size: ^0.6.0 copied to clipboard
A robust, customisable package to get a human representation of the size of your files.
0.6.0 #
- Split up the previously monolithic files into a file per class.
- Split up test files to match the layout of the codebase.
- Moved defaults into a new file
defaults.dart
. - Renamed:
BinarySystem
->BinaryNumeralSystem
DecimalSystem
->DecimalNumeralSystem
BestFitConversion
->BestFitUnitConversion
LongLowercaseStyle
->LongLowercaseUnitStyle
LongUppercaseStyle
->LongUppercaseUnitStyle
ShortLowercaseStyle
->ShortLowercaseUnitStyle
ShortUppercaseStyle
->ShortUppercaseUnitStyle
- Added namespaced, enum-like constructors:
NumeralSystem.binary()
NumeralSystem.decimal()
OutputFormat.simple()
QuantityDisplayMode.custom()
QuantityDisplayMode.intl()
QuantityDisplayMode.simple()
UnitConversion.bestFit()
UnitConversion.specific()
UnitStyle.longLowercase()
UnitStyle.longUppercase()
UnitStyle.shortLowercase()
UnitStyle.shortUppercase()
0.5.1 #
- Added missing piece of documentation.
0.5.0 #
- Added
OutputFormatter
to format the produced output.
0.4.0 #
- Added
intl
as a dependency. - Added
IntlQuantityDisplayMode
. - Renamed
SimpleDisplayMode
toSimpleQuantityDisplayMode
for consistency. - Deprecated
CustomQuantityDisplayMode
in favour of concrete implementations ofQuantityDisplayMode
.
0.3.0 #
- Added method
bytes
toUnit
for more natural comparisons.
0.2.0 #
- Renamed base method from
fileSizeToString
tohumanFileSize()
. - Added extension method
humanFileSize
onnum
.
0.1.2 #
- Fixed pub.dev score.
0.1.1 #
- Fixed pub.dev score.
0.1.0 #
- Initial version.