lerp method
Must override the lerp method.
Implementation
@override
CodeTheme lerp(ThemeExtension<CodeTheme>? other, double t) {
if (other is! CodeTheme) {
return this;
}
return CodeTheme(
baseColor: Color.lerp(baseColor, other.baseColor, t),
numberColor: Color.lerp(numberColor, other.numberColor, t),
commentColor: Color.lerp(commentColor, other.commentColor, t),
keywordColor: Color.lerp(keywordColor, other.keywordColor, t),
stringColor: Color.lerp(stringColor, other.stringColor, t),
punctuationColor: Color.lerp(punctuationColor, other.punctuationColor, t),
classColor: Color.lerp(classColor, other.classColor, t),
constantColor: Color.lerp(constantColor, other.constantColor, t),
);
}