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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user