File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ Widget _dialogActionText(String text) {
2222/// See also:
2323/// * [showDialog] , whose return value this class is intended to wrap.
2424class DialogStatus {
25- const DialogStatus (this .closed );
25+ const DialogStatus (this .result );
2626
2727 /// Resolves when the dialog is closed.
28- final Future <void > closed ;
28+ final Future <void > result ;
2929}
3030
3131/// Displays an [AlertDialog] with a dismiss button
3232/// and optional "Learn more" button.
3333///
34- /// The [DialogStatus.closed ] field of the return value can be used
34+ /// The [DialogStatus.result ] field of the return value can be used
3535/// for waiting for the dialog to be closed.
3636// This API is inspired by [ScaffoldManager.showSnackBar]. We wrap
3737// [showDialog]'s return value, a [Future], inside [DialogStatus]
Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ class _VideoLightboxPageState extends State<VideoLightboxPage> with PerAccountSt
484484 context: context,
485485 title: zulipLocalizations.errorDialogTitle,
486486 message: zulipLocalizations.errorVideoPlayerFailed);
487- await dialog.closed ;
487+ await dialog.result ;
488488 if (! mounted) return ;
489489 Navigator .pop (context); // Pops the lightbox
490490 }
You can’t perform that action at this time.
0 commit comments