getRecapFromResources static method

String? getRecapFromResources({
  1. List<String>? resources,
})

Implementation

static String? getRecapFromResources({List<String>? resources}) {
  final resourcesList = resources ?? [];
  if (resourcesList.isEmpty) return null;
  // per spec, recap is always the last resource
  final recap = resourcesList.last;
  return isRecap(recap) ? recap : null;
}