Unverified Commit d44ab58d authored by Mateus Felipe C. C. Pinto's avatar Mateus Felipe C. C. Pinto Committed by GitHub

Remove references to @required in favor of the keyword (#79239)

parent abedbc3a
...@@ -874,7 +874,7 @@ abstract class FloatingActionButtonAnimator { ...@@ -874,7 +874,7 @@ abstract class FloatingActionButtonAnimator {
/// ///
/// ```dart /// ```dart
/// @override /// @override
/// Animation<double> getScaleAnimation({@required Animation<double> parent}) { /// Animation<double> getScaleAnimation({required Animation<double> parent}) {
/// // The animations will cross at value 0, and the train will return to 1.0. /// // The animations will cross at value 0, and the train will return to 1.0.
/// return TrainHoppingAnimation( /// return TrainHoppingAnimation(
/// Tween<double>(begin: 1.0, end: -1.0).animate(parent), /// Tween<double>(begin: 1.0, end: -1.0).animate(parent),
...@@ -896,7 +896,7 @@ abstract class FloatingActionButtonAnimator { ...@@ -896,7 +896,7 @@ abstract class FloatingActionButtonAnimator {
/// ///
/// ```dart /// ```dart
/// @override /// @override
/// Animation<double> getRotationAnimation({@required Animation<double> parent}) { /// Animation<double> getRotationAnimation({required Animation<double> parent}) {
/// return Tween<double>(begin: 0.0, end: 1.0).animate(parent); /// return Tween<double>(begin: 0.0, end: 1.0).animate(parent);
/// } /// }
/// ``` /// ```
......
...@@ -479,10 +479,9 @@ abstract class Widget extends DiagnosticableTree { ...@@ -479,10 +479,9 @@ abstract class Widget extends DiagnosticableTree {
/// ``` /// ```
/// {@end-tool} /// {@end-tool}
/// ///
/// By convention, widget constructors only use named arguments. Named arguments /// By convention, widget constructors only use named arguments. Also by
/// can be marked as required using [@required]. Also by convention, the first /// convention, the first argument is [key], and the last argument is `child`,
/// argument is [key], and the last argument is `child`, `children`, or the /// `children`, or the equivalent.
/// equivalent.
/// ///
/// See also: /// See also:
/// ///
...@@ -716,10 +715,9 @@ abstract class StatelessWidget extends Widget { ...@@ -716,10 +715,9 @@ abstract class StatelessWidget extends Widget {
/// ``` /// ```
/// {@end-tool} /// {@end-tool}
/// ///
/// By convention, widget constructors only use named arguments. Named arguments /// By convention, widget constructors only use named arguments. Also by
/// can be marked as required using [@required]. Also by convention, the first /// convention, the first argument is [key], and the last argument is `child`,
/// argument is [key], and the last argument is `child`, `children`, or the /// `children`, or the equivalent.
/// equivalent.
/// ///
/// See also: /// See also:
/// ///
......
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