IAppMarket.ofType constructor Null safety

IAppMarket.ofType(
  1. AppMarket appMarket
)

Implementation

factory IAppMarket.ofType(AppMarket appMarket){
  switch(appMarket){
    case AppMarket.cafeBazaar:
      return CafeBazaar();
    case AppMarket.myket:
      return Myket();
    case AppMarket.jhoobin:
      return Jhoobin();
    case AppMarket.iranApps:
      return IranApps();
  }
}