Commit d562e1aa authored by P.Y. Laligand's avatar P.Y. Laligand Committed by GitHub

Fixed some analysis errors. (#9967)

parent f7d62aaa
......@@ -308,7 +308,7 @@ class RefreshIndicatorState extends State<RefreshIndicator> with TickerProviderS
_mode = _RefreshIndicatorMode.snap;
_positionController
.animateTo(1.0 / _kDragSizeFactorLimit, duration: _kIndicatorSnapDuration)
.then((Null value) {
.then<Null>((Null value) {
if (mounted && _mode == _RefreshIndicatorMode.snap) {
assert(widget.onRefresh != null);
setState(() {
......
......@@ -291,7 +291,7 @@ class AnimatedListState extends State<AnimatedList> with TickerProviderStateMixi
_itemsCount += 1;
});
controller.forward().then((Null value) {
controller.forward().then<Null>((Null value) {
_removeActiveItemAt(_incomingItems, incomingItem.itemIndex).controller.dispose();
});
}
......@@ -326,7 +326,7 @@ class AnimatedListState extends State<AnimatedList> with TickerProviderStateMixi
..sort();
});
controller.reverse().then((Null value) {
controller.reverse().then<Null>((Null value) {
_removeActiveItemAt(_outgoingItems, outgoingItem.itemIndex).controller.dispose();
// Decrement the incoming and outgoing item indices to account
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment