getFirstLeft method

  1. @protected
T? getFirstLeft(
  1. List<T> sets
)

Returns the first of sets that is plotted against the left y axis, or null if there is none.

Implementation

@protected
T? getFirstLeft(List<T> sets) {
  for (final it in sets) {
    if (it.axisDependency == AxisDependency.LEFT) return it;
  }
  return null;
}