lerp method

  1. @override
M3ESelectionTheme lerp(
  1. M3ESelectionTheme? other,
  2. double t
)
override

Linearly interpolates between this theme and other.

Implementation

@override
M3ESelectionTheme lerp(M3ESelectionTheme? other, double t) {
  if (other is! M3ESelectionTheme) {
    return this;
  }
  return t < 0.5 ? this : other;
}