LuckyCanvasCompatResult<C> class final

带诊断的迁移结果;警告列表须由调用方保持不可变。

Annotations

Constructors

LuckyCanvasCompatResult({required C config, double? width, double? height, List<LuckyCanvasCompatWarning> warnings = const []})
创建结果;width 和 height 缺省时由父布局决定尺寸。
const

Properties

config → C
类型化配置。
final
hashCode → int
与结果相等性一致的哈希。
no setteroverride
height → double?
可选逻辑高度。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
warnings → List<LuckyCanvasCompatWarning>
转换警告,按发现顺序排列。
final
width → double?
可选逻辑宽度。
final

Methods

copyWith({C? config, double? width, double? height, List<LuckyCanvasCompatWarning>? warnings}) → LuckyCanvasCompatResult<C>
返回替换非 null 参数的结果副本。
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
比较配置、尺寸和警告内容。
override