buildLerp method

  1. @override
String buildLerp(
  1. String token
)
override

Builds Flutter code that's linearly interpolating the current type.

This method only works if it is used in a context where a class wants to linearly interpolate between the current and other value.

Implementation

@override
String buildLerp(String token) {
  return 'lerpDouble($token, other.$token, t)';
}