diff --git a/lib/flushbar_route.dart b/lib/flushbar_route.dart index aaaa6bb..f475a68 100644 --- a/lib/flushbar_route.dart +++ b/lib/flushbar_route.dart @@ -434,7 +434,9 @@ class FlushbarRoute extends OverlayRoute { assert(!_transitionCompleter.isCompleted, 'Cannot dispose a $runtimeType twice.'); _controller?.dispose(); - _transitionCompleter.complete(_result); + if (_result != null) { + _transitionCompleter.complete(_result); + } super.dispose(); }