Format class

provides a random collection of formatters EXPERIMENTAL

Constructors

Format()
Factory constructor.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bytesAsReadable(int bytes, {bool pad = true}) String
returns the the number of bytes in a human readable form. e.g. 1e+5 3.000T, 10.00G, 100.0M, 20.00K, 10B
limitString(String display, {int width = 40}) String
Limits the display string's length to width by removing the centre components of the string and replacing them with '...'
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
percentage(double progress, int precision) String
returns a double as a percentage to the given precision e.g. 0.11 becomes 11% if precision is 0.
row(List<String?> cols, {List<int>? widths, List<TableAlignment>? alignments, String? delimiter}) String
cols is a list of strings (the columns) that are to be formatted as a set of fixed with columns.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited