map<V> method

BaseBreakpoints<V> map<V>(
  1. V f(
    1. T?
    )
)

Returns a new BaseBreakpoints with its values mapped to a new type.

Implementation

BaseBreakpoints<V> map<V>(V Function(T?) f) {
  return BaseBreakpoints(
    breakpoints: breakpoints,
    values: values.map<V>((v) => f(v)).toList(),
  );
}