Add @protected to AnimatedWidget build function (#5929)

We use `@protected` in this way in StatelessWidget to avoid developers calling
this function directly.
This commit is contained in:
Adam Barth
2016-09-19 13:27:04 -07:00
committed by GitHub
parent b38ff60338
commit f64d52e6e5

View File

@@ -35,6 +35,7 @@ abstract class AnimatedWidget extends StatefulWidget {
/// Override this method to build widgets that depend on the current value
/// of the animation.
@protected
Widget build(BuildContext context);
/// Subclasses typically do not override this method.