getReCapActions static method

List<String> getReCapActions({
  1. required List<String> abilities,
})

Implementation

static List<String> getReCapActions({required List<String> abilities}) {
  try {
    return abilities.map((ability) => ability.split('/')[1]).toList();
  } catch (e) {
    debugPrint(e.toString());
  }
  return [];
}