setEnabled static method
@summary Sets whether surveys are enabled or not.
If you disable surveys on the SDK but still have active surveys on your Instabug dashboard,
those surveys are still going to be sent to the device, but are not going to be
shown automatically.
To manually display any available surveys, call Instabug.showSurveyIfAvailable()
.
Defaults to true
.
isEnabled
A boolean to set whether Instabug Surveys is enabled or disabled.
Implementation
static Future<void> setEnabled(bool isEnabled) async {
final List<dynamic> params = <dynamic>[isEnabled];
await _channel.invokeMethod<Object>('setSurveysEnabled:', params);
}