FortniteApiIo constructor Null safety
constructor for fortnite api io object
Implementation
FortniteApiIo({
required this.apiKey,
this.language = "en",
}) {
[
"en",
"ar",
"de",
"es",
"es-419",
"fr",
"it",
"ja",
"ko",
"pl",
"pt-BR",
"ru",
"tr",
"zh-CN",
"zh-Hant",
].contains(language)
? null
: throw Exception("Language not supported");
}