dlgClose<T> method
- T? answer
Closes an open dialog and returns an answer depending on the type of dialog shown.
Implementation
void dlgClose<T>([T? answer]) {
Navigator.of(
cNavigatorKey.currentContext!,
rootNavigator: true,
).pop(answer);
}