canMiniProgramPop method
Checking if the mini-app can pop/close
Implementation
Future<bool> canMiniProgramPop() async{
final result = await _jsEngine?.sendAndAwaitCrossEvent(NUIMiniProgramMessage(channel: NUIMiniProgramWebEventType.CAN_POP.value, data: NUIMiniProgramWebEventType.CAN_POP.value));
if(result != null){
return match(result.data, "true");
}
return false;
}