number<T> static method
Right-aligned monospace number with grouping + decimals.
Implementation
static ReadableColumn<T> number<T>(
String label, {
required num Function(T v) value,
int decimals = 2,
String? suffix,
double? width = 130,
bool sortable = true,
bool colorSign = false,
}) =>
ReadableColumn<T>(
label,
type: ReadableColumnType.number,
width: width,
align: ReadableAlign.end,
sortable: sortable,
sortKey: (v) => value(v),
cell: (ctx, v) => ReadableCells.number(value(v), decimals: decimals, suffix: suffix, colorSign: colorSign),
);