Fixed some analysis errors. (#9967)

This commit is contained in:
P.Y. Laligand
2017-05-10 15:30:28 -07:00
committed by GitHub
parent f7d62aaa9e
commit d562e1aa63
2 changed files with 3 additions and 3 deletions

View File

@@ -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(() {

View File

@@ -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