MCP constructor Null safety

MCP(
  1. FortniteProfile _profileId,
  2. {required String accountId}
)

Get mcp request url

Implementation

MCP(this._profileId, {required this.accountId}) {
  switch (_profileId) {
    case FortniteProfile.athena:
      profileId = "athena";
      break;

    case FortniteProfile.campaign:
      profileId = "campaign";
      break;

    case FortniteProfile.common_core:
      profileId = "common_core";
      break;

    case FortniteProfile.common_public:
      profileId = "common_public";
      break;

    case FortniteProfile.outpost0:
      profileId = "outpost0";
      break;

    case FortniteProfile.theater0:
      profileId = "theater0";
      break;

    case FortniteProfile.theater1:
      profileId = "theater1";
      break;

    case FortniteProfile.theater2:
      profileId = "theater2";
      break;
  }
}