leftStringAtIndex method Null safety

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

Implementation

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