lerp static method

Implementation

static NomoDialogSizingData lerp(
    NomoDialogSizingData a, NomoDialogSizingData b, double t) {
  return NomoDialogSizingData(
    elevation: lerpDouble(a.elevation, b.elevation, t)!,
    contentSpacing: t < 0.5 ? a.contentSpacing : b.contentSpacing,
    widthRatio: lerpDouble(a.widthRatio, b.widthRatio, t)!,
    margin: EdgeInsetsGeometry.lerp(a.margin, b.margin, t)!,
    padding: EdgeInsetsGeometry.lerp(a.padding, b.padding, t)!,
    borderRadius:
        BorderRadiusGeometry.lerp(a.borderRadius, b.borderRadius, t)!,
  );
}