get method
Get the requested app ID.
Implementation
String get({DexcomRegion? code}) {
code ??= _getRegion();
switch (code) {
case DexcomRegion.us:
if (us != null) {
return us!;
} else {
throw DexcomInitializationError("A US app ID was not provided.");
}
case DexcomRegion.ous:
if (ous != null) {
return ous!;
} else {
throw DexcomInitializationError(
"An out-of-US app ID was not provided.");
}
case DexcomRegion.jp:
if (jp != null) {
return jp!;
} else {
throw DexcomInitializationError(
"A Japanese app ID was not provided.");
}
}
}