finish static method
Finish current session in polling mode.
You must invoke it before start a new session.
On iOS, use iosAlertMessage to indicate success or iosErrorMessage to indicate failure.
If both parameters are set, iosErrorMessage will be used.
On Web, set closeWebUSB to true to end the session, so that user can choose a different device in next poll.
Implementation
static Future<void> finish(
{String? iosAlertMessage,
String? iosErrorMessage,
bool? closeWebUSB}) async {
return await _channel.invokeMethod('finish', {
'iosErrorMessage': iosErrorMessage,
'iosAlertMessage': iosAlertMessage,
'closeWebUSB': closeWebUSB ?? false,
});
}