closeWidget method
void
closeWidget()
Implementation
void closeWidget() {
if (kDebugMode) {
print('wepin_closeWidget');
}
if (!WepinManagerModel().getInitialized()) {
if (kDebugMode) {
print('wepin is not initialized');
}
throw Exception('wepin is not initialized');
}
if (Navigator.canPop(_appContext)) {
if (kDebugMode) {
//print('return_to_app');
}
Navigator.pop(_appContext);
}
}