buildLerp method

String buildLerp(
  1. String token
)

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

String buildLerp(String token) {
  return '$flutterType.lerp($token, other.$token, t)';
}