middleStringAtIndex method Null safety

  1. @override
String? middleStringAtIndex(
  1. int index
)
override

Implementation

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