This commit is contained in:
2025-03-09 14:24:48 +02:00
parent 2fa55848b9
commit 3610f899b4
2 changed files with 2 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ class _AstromicFuturePresenterState<T> extends State<AstromicFuturePresenter<T>>
//S1 -- Method to reinitialize or update `_future` with a new instance
void _initializeFuture() {
_future = widget.futureController.getFuture(widget.futureId)?.then((result) => result) as Future<T?>?;
_future = widget.futureController.getFuture<T?>(widget.futureId)?.then((result) => result);
}
//!SECTION

View File

@@ -122,7 +122,7 @@ class _AstromicStreamPresenterState<T> extends State<AstromicStreamPresenter<T>>
//S1 -- Method to reinitialize or update `_future` with a new instance
void _initializeStream() {
_stream = widget.controller.getStream(widget.streamId)?.asyncMap((dynamic result) => result) as Stream<T?>?;
_stream = widget.controller.getStream<T?>(widget.streamId)?.asyncMap((dynamic result) => result) as Stream<T?>?;
}
//!SECTION