getContentAtIndex method Null safety

  1. @override
String? getContentAtIndex(
  1. int column,
  2. int index
)
override

Implementation

@override
String? getContentAtIndex(int column, int index) {
  if (index >= 0 && index < (column == 0 ? 24 : 60)) {
    return digits(index, 2);
  } else {
    return null;
  }
}