createAxis method

NumberLine createAxis(
  1. double min,
  2. double max,
  3. AxisConfig config
)

Implementation

NumberLine createAxis(double min, double max, AxisConfig config) {
  var configs = [config, axisConfig, defaultAxisConfig];
  var merged = configs.reduce((a, b) => a.merge(b));
  return NumberLine.fromConfig(merged, xMin: min, xMax: max);
}