LabeledValue<T>.format constructor

LabeledValue<T>.format(
  1. T value,
  2. Formatter formatter
)

Creates a new LabeledValue by executing the provided formatter on the provided value.

Implementation

factory LabeledValue.format(T value, Formatter formatter) =>
    LabeledValue(value, formatter.format(value));