lerp static method

Linearly interpolate between two themes.

Implementation

static SfDataPagerThemeData? lerp(
    SfDataPagerThemeData? a, SfDataPagerThemeData? b, double t) {
  if (a == null && b == null) {
    return null;
  }
  return SfDataPagerThemeData(
      backgroundColor: Color.lerp(a!.backgroundColor, b!.backgroundColor, t),
      itemColor: Color.lerp(a.itemColor, b.itemColor, t),
      itemTextStyle: TextStyle.lerp(a.itemTextStyle, b.itemTextStyle, t),
      selectedItemColor:
          Color.lerp(a.selectedItemColor, b.selectedItemColor, t),
      selectedItemTextStyle:
          TextStyle.lerp(a.selectedItemTextStyle, b.selectedItemTextStyle, t),
      disabledItemColor:
          Color.lerp(a.disabledItemColor, b.disabledItemColor, t),
      disabledItemTextStyle:
          TextStyle.lerp(a.disabledItemTextStyle, b.disabledItemTextStyle, t),
      itemBorderColor: Color.lerp(a.itemBorderColor, b.itemBorderColor, t),
      itemBorderWidth: lerpDouble(a.itemBorderWidth, b.itemBorderWidth, t),
      itemBorderRadius: BorderRadiusGeometry.lerp(
          a.itemBorderRadius, b.itemBorderRadius, t),
      dropdownButtonBorderColor: Color.lerp(
          a.dropdownButtonBorderColor, b.dropdownButtonBorderColor, t));
}