[0.1.2]
This commit is contained in:
@@ -128,7 +128,7 @@ class _AstromicFuturePresenterState<T> extends State<AstromicFuturePresenter<T>>
|
|||||||
|
|
||||||
//S1 -- Method to reinitialize or update `_future` with a new instance
|
//S1 -- Method to reinitialize or update `_future` with a new instance
|
||||||
void _initializeFuture() {
|
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
|
//!SECTION
|
||||||
|
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ class _AstromicStreamPresenterState<T> extends State<AstromicStreamPresenter<T>>
|
|||||||
|
|
||||||
//S1 -- Method to reinitialize or update `_future` with a new instance
|
//S1 -- Method to reinitialize or update `_future` with a new instance
|
||||||
void _initializeStream() {
|
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
|
//!SECTION
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user