Format class

provides a random collection of formatters EXPERIMENTAL

Constructors

Format()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

bytesAsReadable(int bytes) String
returns the the number of bytes in a human readable form. e.g. 10G, 100M, 20K, 10B
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.