scale property

double scale

Implementation

double get scale {
  if (this.size == null) return 1;
  final size = getCardSize();
  double sW = this.size!.width / size.width;
  double sH = this.size!.height / size.height;
  return sH < sW ? sH : sW;
}