getChallengeByType method

Challenge getChallengeByType(
  1. String type
)

Implementation

Challenge getChallengeByType(String type) {
  return challenges!.firstWhere((element) => element.type == type);
}