lerp method

  1. @override
TopicTheme lerp(
  1. covariant ThemeExtension<TopicTheme>? other,
  2. double t
)
override

Must override the lerp method.

Implementation

@override
TopicTheme lerp(ThemeExtension<TopicTheme>? other, double t) {
  if (other is! TopicTheme) {
    return this;
  }
  return TopicTheme(
    generalColor: Color.lerp(generalColor, other.generalColor, t),
    colorsColor: Color.lerp(colorsColor, other.colorsColor, t),
    componentsColor: Color.lerp(componentsColor, other.componentsColor, t),
    controlsColor: Color.lerp(controlsColor, other.controlsColor, t),
    inputsColor: Color.lerp(inputsColor, other.inputsColor, t),
    barsColor: Color.lerp(barsColor, other.barsColor, t),
    navigationColor: Color.lerp(navigationColor, other.navigationColor, t),
    surfacesColor: Color.lerp(surfacesColor, other.surfacesColor, t),
    textsColor: Color.lerp(textsColor, other.textsColor, t),
  );
}