activeDialogId property

String? get activeDialogId

Gets the ID of the currently active dialog (if any)

Implementation

static String? get activeDialogId => _dialogStackNotifier.state.isEmpty
    ? null
    : _dialogStackNotifier.state.last.uniqueId;