From 67c4ff99e8fc34d4c113beca701248a48ffff002 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Wed, 20 Jan 2016 17:55:24 -0800 Subject: [PATCH] Fix analyzer warning --- packages/flutter/lib/src/animation/animation_controller.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/flutter/lib/src/animation/animation_controller.dart b/packages/flutter/lib/src/animation/animation_controller.dart index ef3eb6abbf..8a20008358 100644 --- a/packages/flutter/lib/src/animation/animation_controller.dart +++ b/packages/flutter/lib/src/animation/animation_controller.dart @@ -110,6 +110,10 @@ class AnimationController extends Animation _ticker.stop(); } + void dispose() { + stop(); + } + /// Flings the timeline with an optional force (defaults to a critically /// damped spring) and initial velocity. If velocity is positive, the /// animation will complete, otherwise it will dismiss.