appMarketName function Null safety

String appMarketName(
  1. AppMarket appMarket
)

Implementation

String appMarketName(AppMarket appMarket){
  const names = {
    AppMarket.cafeBazaar : 'CafeBazaar',
    AppMarket.myket : 'Myket',
    AppMarket.jhoobin: 'Jhoobin',
    AppMarket.iranApps: 'IranApps'
  };
  return names[appMarket]!;
}