Commit f64d52e6 authored by Adam Barth's avatar Adam Barth Committed by GitHub

Add `@protected` to AnimatedWidget build function (#5929)

We use `@protected` in this way in StatelessWidget to avoid developers calling
this function directly.
parent b38ff603
......@@ -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.
......
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