getLeft static method

double getLeft(
  1. List lyricArray
)

Implementation

static double getLeft(List<dynamic> lyricArray) {
  if (lyricArray.isEmpty) return double.nan;
  var x = double.maxFinite;
  for (final lyric in lyricArray) {
    if (lyric != null) {
      x = math.min(x, lyric.notation.bounds.x + lyric.bounds.x);
    }
  }
  return x;
}