hasRespondedToSurvey static method
Sets a block of code to be executed just before the SDK's UI is presented.
This block is executed on the UI thread. Could be used for performing any
UI changes after the survey's UI is dismissed.
function
A callback that gets executed after the survey's UI is dismissed.
Implementation
static Future<void> hasRespondedToSurvey(
String surveyToken, Function function) async {
_channel.setMethodCallHandler(_handleMethod);
_hasRespondedToSurveyCallback = function;
final List<dynamic> params = <dynamic>[surveyToken];
await _channel.invokeMethod<Object>(
'hasRespondedToSurveyWithToken:', params);
}