closeBottomSheet method
void
closeBottomSheet(
- AFScreenID sheetId,
- dynamic returnValue
inherited
Closes the dialog, and returns the returnValue
to the callback function that was
passed to showDialog.
This is intended to be called from within an AFConnectedDialog. If you call it and a dialog is not open, it will mess up the navigation state.
Implementation
void closeBottomSheet(AFScreenID sheetId, dynamic returnValue) {
final ctx = flutterContext;
final didNav = (ctx != null && AFibF.g.doMiddlewareNavigation( (navState) {
material.Navigator.pop(ctx, returnValue);
}));
if(!didNav) {
AFibF.g.testOnlySimulateCloseDialogOrSheet(sheetId, returnValue);
} else {
AFibF.g.testOnlyShowUIReturn[sheetId] = returnValue;
}
}