rightStringAtIndex method Null safety

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

Implementation

@override
String? rightStringAtIndex(int index) {
  if (index == 0) {
    return i18nObjInLocale(this.locale)["am"] as String?;
  } else if (index == 1) {
    return i18nObjInLocale(this.locale)["pm"] as String?;
  } else {
    return null;
  }
}