lerp method

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

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

Implementation

@useResult
FHeaderStyle lerp(FHeaderStyle other, double t) => FHeaderStyle(
  systemOverlayStyle: t < 0.5 ? systemOverlayStyle : other.systemOverlayStyle,
  decoration: BoxDecoration.lerp(decoration, other.decoration, t) ?? decoration,
  backgroundFilter: t < 0.5 ? backgroundFilter : other.backgroundFilter,
  padding: EdgeInsetsGeometry.lerp(padding, other.padding, t) ?? padding,
  actionSpacing: lerpDouble(actionSpacing, other.actionSpacing, t) ?? actionSpacing,
  titleTextStyle: TextStyle.lerp(titleTextStyle, other.titleTextStyle, t) ?? titleTextStyle,
  actionStyle: actionStyle.lerp(other.actionStyle, t),
);