Various bits of trivial cleanup (#58203)
diff --git a/packages/flutter/lib/src/gestures/hit_test.dart b/packages/flutter/lib/src/gestures/hit_test.dart
index c2aeb10..ff1e72e 100644
--- a/packages/flutter/lib/src/gestures/hit_test.dart
+++ b/packages/flutter/lib/src/gestures/hit_test.dart
@@ -65,8 +65,8 @@
///
/// See also:
///
- /// * [HitTestResult.pushTransform], which is used during hit
- /// testing to build up the transform returned by this method.
+ /// * [HitTestResult.addWithPaintTransform], which is used during hit testing
+ /// to build up this transform.
Matrix4 get transform => _transform;
Matrix4 _transform;
}
diff --git a/packages/flutter/lib/src/rendering/box.dart b/packages/flutter/lib/src/rendering/box.dart
index a30442c..4e49ab8 100644
--- a/packages/flutter/lib/src/rendering/box.dart
+++ b/packages/flutter/lib/src/rendering/box.dart
@@ -691,7 +691,7 @@
/// parent don't share the same origin.
///
/// ```dart
- /// abstract class Foo extends RenderBox {
+ /// abstract class RenderFoo extends RenderBox {
///
/// final Matrix4 _effectiveTransform = Matrix4.rotationZ(50);
///
@@ -752,7 +752,7 @@
///
/// A null value for `offset` is treated as if [Offset.zero] was provided.
///
- /// Se also:
+ /// See also:
///
/// * [addWithPaintTransform], which takes a generic paint transform matrix and
/// documents the intended usage of this API in more detail.
@@ -789,7 +789,7 @@
/// the child speaks a different hit test protocol then the parent and the
/// position is not required to do the actual hit testing in that protocol.
///
- /// Se also:
+ /// See also:
///
/// * [addWithPaintTransform], which accomplishes the same thing, but takes a
/// _paint_ transform matrix.
diff --git a/packages/flutter/lib/src/widgets/basic.dart b/packages/flutter/lib/src/widgets/basic.dart
index de3530b..fa4e1e8 100644
--- a/packages/flutter/lib/src/widgets/basic.dart
+++ b/packages/flutter/lib/src/widgets/basic.dart
@@ -2732,12 +2732,14 @@
class AspectRatio extends SingleChildRenderObjectWidget {
/// Creates a widget with a specific aspect ratio.
///
- /// The [aspectRatio] argument must not be null.
+ /// The [aspectRatio] argument must be a finite number greater than zero.
const AspectRatio({
Key key,
@required this.aspectRatio,
Widget child,
}) : assert(aspectRatio != null),
+ assert(aspectRatio > 0.0),
+ // can't test isFinite because that's not a constant expression
super(key: key, child: child);
/// The aspect ratio to attempt to use.