lerp method

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

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

Implementation

@useResult
FOtpFieldItemStyle lerp(FOtpFieldItemStyle other, double t) => .new(
  decoration: .lerp(decoration, other.decoration, t) ?? decoration,
  contentTextStyle: .lerp(contentTextStyle, other.contentTextStyle, t) ?? contentTextStyle,
);