getRowIndex method

int getRowIndex(
  1. int day
)

Index of the row in the month that contains the day. If no days match, -1 is returned.

Implementation

int getRowIndex(int day) {
  var position = (day - 1) + weeks!.first.numBlankDays;
  var row = position ~/ 7;
  return displayTitleInline ? row : row + 1;
}