lerp method

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

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

Implementation

@useResult
FTabsStyle lerp(FTabsStyle other, double t) => FTabsStyle(
  decoration: BoxDecoration.lerp(decoration, other.decoration, t) ?? decoration,
  padding: EdgeInsetsGeometry.lerp(padding, other.padding, t) ?? padding,
  selectedLabelTextStyle:
      TextStyle.lerp(selectedLabelTextStyle, other.selectedLabelTextStyle, t) ?? selectedLabelTextStyle,
  unselectedLabelTextStyle:
      TextStyle.lerp(unselectedLabelTextStyle, other.unselectedLabelTextStyle, t) ?? unselectedLabelTextStyle,
  indicatorDecoration: BoxDecoration.lerp(indicatorDecoration, other.indicatorDecoration, t) ?? indicatorDecoration,
  indicatorSize: t < 0.5 ? indicatorSize : other.indicatorSize,
  height: lerpDouble(height, other.height, t) ?? height,
  spacing: lerpDouble(spacing, other.spacing, t) ?? spacing,
  focusedOutlineStyle: focusedOutlineStyle.lerp(other.focusedOutlineStyle, t),
);