lerp method

  1. @useResult
FButtonStyles lerp(
  1. FButtonStyles other,
  2. double t
)

Linearly interpolate between this and another FButtonStyles using the given factor t.

Implementation

@useResult
FButtonStyles lerp(FButtonStyles other, double t) => FButtonStyles(
  primary: primary.lerp(other.primary, t),
  secondary: secondary.lerp(other.secondary, t),
  destructive: destructive.lerp(other.destructive, t),
  outline: outline.lerp(other.outline, t),
  ghost: ghost.lerp(other.ghost, t),
);