configure static method

Future<void> configure(
  1. String projectKey, [
  2. bool enableSurveys = true
])

Implementation

static Future<void> configure(String projectKey, [bool enableSurveys = true]) async {
  try {
    Map<String, Object> args = <String, Object>{};
    args.putIfAbsent("projectKey", () => projectKey);
    args.putIfAbsent("enableSurveys", () => enableSurveys);
    await methodchannel.invokeMethod('configure', args);
  }catch(err){
    throw Exception("error occured : ${err.toString()}");
  }
}