rightStringAtIndex method Null safety

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

Implementation

@override
String? rightStringAtIndex(int index) {
  if (index >= 0 && index < rightList.length) {
    return rightList[index];
  } else {
    return null;
  }
}