lerp method

PhotoData lerp(
  1. dynamic data
)
override

Implementation

PhotoData lerp(data) {
  if (data is IconData) photo = Picture.library(data);
  if (data is Picture) photo = data;

  if (data is Size) {
    width = data.width;
    height = data.height;
  }

  if (data is BlendMode) blendMode = data;
  if (data is BoxFit) boxFit = data;

  if (data is PhotoData) {
    photo = data.photo;
    width = data.width;
    height = data.height;
    blendMode = data.blendMode;
    boxFit = data.boxFit;
  }
  return super.lerp(data);
}