lerp static method

SearchViewThemeData? lerp(
  1. SearchViewThemeData? a,
  2. SearchViewThemeData? b,
  3. double t
)

Linearly interpolate between two SearchViewThemeDatas.

Implementation

static SearchViewThemeData? lerp(SearchViewThemeData? a, SearchViewThemeData? b, double t) {
  if (identical(a, b)) {
    return a;
  }
  return SearchViewThemeData(
    backgroundColor: Color.lerp(a?.backgroundColor, b?.backgroundColor, t),
    elevation: lerpDouble(a?.elevation, b?.elevation, t),
    surfaceTintColor: Color.lerp(a?.surfaceTintColor, b?.surfaceTintColor, t),
    side: _lerpSides(a?.side, b?.side, t),
    shape: OutlinedBorder.lerp(a?.shape, b?.shape, t),
    headerHeight: lerpDouble(a?.headerHeight, b?.headerHeight, t),
    headerTextStyle: TextStyle.lerp(a?.headerTextStyle, b?.headerTextStyle, t),
    headerHintStyle: TextStyle.lerp(a?.headerTextStyle, b?.headerTextStyle, t),
    constraints: BoxConstraints.lerp(a?.constraints, b?.constraints, t),
    dividerColor: Color.lerp(a?.dividerColor, b?.dividerColor, t),
  );
}