enableSurveys static method

Future<void> enableSurveys(
  1. bool enableSurveys
)

Implementation

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