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