getCurrentPageAyahsSeparatedForBasmalahQcfV1AsLines method

List<List<LineModel>> getCurrentPageAyahsSeparatedForBasmalahQcfV1AsLines(
  1. int pageIndex
)

Implementation

List<List<LineModel>> getCurrentPageAyahsSeparatedForBasmalahQcfV1AsLines(
    int pageIndex) {
  final allLines = staticPages[pageIndex].lines.splitBetween((f, s) {
    return f.ayahs.first.ayahNumber > s.ayahs.first.ayahNumber;
  }).toList();
  log('All lines length: ${allLines.length}');
  return allLines;
}