onSasStarted method
void
onSasStarted( - dynamic event
)
Implementation
void onSasStarted(VerificationEvent event) {
_log.info('emitter sas.started');
// close dialog from previous stage, ex: request.transitioned
final nav = Navigator.of(context, rootNavigator: true);
if (nav.canPop()) nav.pop();
// accept sas that verifier started
event.acceptSasVerification();
// open sas.started dialog
showModalBottomSheet(
context: context,
builder: (BuildContext context) => SasStartedView(
isVerifier: isVerifier,
onCancel: (BuildContext context) async {
await event.cancelSasVerification();
},
),
isDismissible: false,
);
}