getCommodity method
Implementation
CommodityModel getCommodity(int? commodity) {
if (commodity != null) {
return supportedCommodities.firstWhere((comm) => comm.id == commodity,
orElse: () => supportedCommodities.first);
}
return supportedCommodities.first;
}