GridCellVisual class final
格子在某个状态下的完整视觉。
- Annotations
Constructors
-
GridCellVisual({required Rect rect, required double borderRadius, required LuckyFill? background, required LuckyShadow? shadow, required LuckyBorder? border, required LuckyFill? foreground, required List<
LuckyImagePlacement> images, required List<LuckyTextLine> texts}) -
创建视觉,所有坐标均为逻辑像素。
const
Properties
- background → LuckyFill?
-
背景;null 才表示没有背景。
final
- border → LuckyBorder?
-
内描边。
final
- borderRadius → double
-
圆角半径,允许显式为零。
final
- foreground → LuckyFill?
-
内容之上的前景。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
images
→ List<
LuckyImagePlacement> -
图片摆放规则。
final
- rect → Rect
-
阴影偏移收缩后的矩形。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadow → LuckyShadow?
-
阴影;没有背景时不参与绘制。
final
-
texts
→ List<
LuckyTextLine> -
文字行,保留空行。
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited