LuckyImagePlacement constructor
const
LuckyImagePlacement({
- required LuckyImageSlot slot,
- required LuckyImage image,
- required Rect box,
- required double maxWidth,
- required double maxHeight,
- required double leftBase,
- required double topBase,
- 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});