incompitable dummy fix

This commit is contained in:
Kingkor Roy Tirtho 2022-03-18 12:44:14 +06:00
parent 147f1373d4
commit 195f965e24

View File

@ -7,6 +7,7 @@ void main() async {
final env = Platform.environment; final env = Platform.environment;
final bool hasKey = env.containsKey("SECRET"); final bool hasKey = env.containsKey("SECRET");
final val = hasKey ? jsonDecode(env["SECRET"]!) : null; final val = hasKey ? jsonDecode(env["SECRET"]!) : null;
print("SECRET VALUE: ${env["SECRET"]}");
if (!hasKey || (hasKey && val is! List)) { if (!hasKey || (hasKey && val is! List)) {
throw Exception( throw Exception(
"'SECRET' Environmental Variable isn't configured properly"); "'SECRET' Environmental Variable isn't configured properly");