getBooleanForKey static method
Returns the Boolean value for the variableKey
.
defaultValue
is the the value returned in case user has not become a part of campaign/variation.
Implementation
static Future<bool?> getBooleanForKey(
String variableKey, bool defaultValue) async {
try {
Map<String, dynamic> arguments = <String, dynamic>{
"variableKey": variableKey,
"defaultValue": defaultValue
};
final bool boolValue =
await _channel.invokeMethod('booleanForKey', arguments);
return boolValue;
} catch (e) {
print(e);
return null;
}
}