From 5c360c8320108216fc2ae0208da71a432f26d3e0 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Thu, 5 Jan 2017 13:10:41 -0800 Subject: [PATCH] Minor tweaks to Curve documentation (#7353) --- packages/flutter/lib/src/animation/curves.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/animation/curves.dart b/packages/flutter/lib/src/animation/curves.dart index d107c4969e..6cf54d2790 100644 --- a/packages/flutter/lib/src/animation/curves.dart +++ b/packages/flutter/lib/src/animation/curves.dart @@ -6,7 +6,7 @@ import 'dart:math' as math; /// A mapping of the unit interval to the unit interval. /// -/// A curve must map 0.0 to 0.0 and 1.0 to 1.0. +/// A curve must map t=0.0 to 0.0 and t=1.0 to 1.0. /// /// See [Curves] for a collection of common animation curves. abstract class Curve { @@ -18,6 +18,8 @@ abstract class Curve { /// /// The value of `t` must be between 0.0 and 1.0, inclusive. Subclasses should /// assert that this is true. + /// + /// A curve must map t=0.0 to 0.0 and t=1.0 to 1.0. double transform(double t); /// Returns a new curve that is the reversed inversion of this one.