dlgClose<T> method

void dlgClose<T>([
  1. 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);
}