lerp method

Interpolates between two values for animated theme transitions.

Implementation

FdcGridThemeData lerp(FdcGridThemeData other, double t) {
  return FdcGridThemeData(
    grid: grid.lerp(other.grid, t),
    header: header.lerp(other.header, t),
    headerFilters: headerFilters.lerp(other.headerFilters, t),
    toolbar: toolbar.lerp(other.toolbar, t),
    popupMenu: popupMenu.lerp(other.popupMenu, t),
    controls: controls.lerp(other.controls, t),
    summary: summary.lerp(other.summary, t),
    progress: progress.lerp(other.progress, t),
    statusBar: statusBar.lerp(other.statusBar, t),
    statusBarProgressBar: FdcProgressBarStyle.lerp(
      statusBarProgressBar,
      other.statusBarProgressBar,
      t,
    ),
    counter: counter.lerp(other.counter, t),
    cellIndicator: cellIndicator.lerp(other.cellIndicator, t),
    cellErrorIndicator: cellErrorIndicator.lerp(other.cellErrorIndicator, t),
  );
}