lerp method

Linearly interpolates this style toward other by t.

Implementation

FdcEditorComboPopupStyle lerp(FdcEditorComboPopupStyle other, double t) {
  return FdcEditorComboPopupStyle(
    backgroundColor: Color.lerp(backgroundColor, other.backgroundColor, t),
    surfaceTintColor: Color.lerp(surfaceTintColor, other.surfaceTintColor, t),
    shadowColor: Color.lerp(shadowColor, other.shadowColor, t),
    borderColor: Color.lerp(borderColor, other.borderColor, t),
    elevation: lerpDouble(elevation, other.elevation, t),
    borderRadius: BorderRadiusGeometry.lerp(
      borderRadius,
      other.borderRadius,
      t,
    ),
    itemTextStyle: TextStyle.lerp(itemTextStyle, other.itemTextStyle, t),
    highlightedItemColor: Color.lerp(
      highlightedItemColor,
      other.highlightedItemColor,
      t,
    ),
    selectedIconColor: Color.lerp(
      selectedIconColor,
      other.selectedIconColor,
      t,
    ),
    emptyTextStyle: TextStyle.lerp(emptyTextStyle, other.emptyTextStyle, t),
    searchFillColor: Color.lerp(searchFillColor, other.searchFillColor, t),
    searchTextStyle: TextStyle.lerp(
      searchTextStyle,
      other.searchTextStyle,
      t,
    ),
    searchHintStyle: TextStyle.lerp(
      searchHintStyle,
      other.searchHintStyle,
      t,
    ),
    searchIconColor: Color.lerp(searchIconColor, other.searchIconColor, t),
    searchClearIconColor: Color.lerp(
      searchClearIconColor,
      other.searchClearIconColor,
      t,
    ),
    searchBorderColor: Color.lerp(
      searchBorderColor,
      other.searchBorderColor,
      t,
    ),
    searchFocusedBorderColor: Color.lerp(
      searchFocusedBorderColor,
      other.searchFocusedBorderColor,
      t,
    ),
    searchBorderWidth: lerpDouble(
      searchBorderWidth,
      other.searchBorderWidth,
      t,
    ),
    searchFocusedBorderWidth: lerpDouble(
      searchFocusedBorderWidth,
      other.searchFocusedBorderWidth,
      t,
    ),
    searchBorderRadius: BorderRadiusGeometry.lerp(
      searchBorderRadius,
      other.searchBorderRadius,
      t,
    ),
  );
}