@@ -23,25 +23,25 @@ abstract class StreamColorSwatches {
2323
2424 StreamColorSwatch _computeForBaseColor (int base );
2525
26- /// Gives a [StreamColorSwatches] , lerped to [other ] at [t] .
26+ /// Gives a [StreamColorSwatches] , lerped between [a] and [b ] at [t] .
2727 ///
28- /// If [this ] and [other ] are [identical] , returns [this] .
28+ /// If [a ] and [b ] are [identical] , returns [this] .
2929 ///
3030 /// Else returns an instance whose [forBaseColor] will call
31- /// [this .forBaseColor] and [other .forBaseColor]
31+ /// [a .forBaseColor] and [b .forBaseColor]
3232 /// and return [StreamColorSwatch.lerp] 's result on those.
3333 /// This computation is cached on the instance
3434 /// in order to save work building [t] 's animation frame when there are
3535 /// multiple UI elements using the same [subscription.color] .
36- StreamColorSwatches lerp (StreamColorSwatches other , double t) {
36+ static StreamColorSwatches lerp (StreamColorSwatches a, StreamColorSwatches b , double t) {
3737 // This short-circuit helps when [a] and [b]
3838 // are both [StreamColorSwatches.light]
3939 // or both [StreamColorSwatches.dark].
4040 // Empirically, [lerp] is called even when the theme hasn't changed,
4141 // so this is an important optimization.
42- if (identical (this , other )) return this ;
42+ if (identical (a, b )) return a ;
4343
44- return _StreamColorSwatchesLerped (this , other , t);
44+ return _StreamColorSwatchesLerped (a, b , t);
4545 }
4646}
4747
0 commit comments