LuckyImagePlacement constructor

const LuckyImagePlacement({
  1. required LuckyImageSlot slot,
  2. required LuckyImage image,
  3. required Rect box,
  4. required double maxWidth,
  5. required double maxHeight,
  6. required double leftBase,
  7. required double topBase,
  8. double yOffset = 0,
})

创建规则;各基准和 yOffset 均为逻辑像素。

Implementation

const LuckyImagePlacement(
    {required this.slot,
    required this.image,
    required this.box,
    required this.maxWidth,
    required this.maxHeight,
    required this.leftBase,
    required this.topBase,
    this.yOffset = 0});