copyWith method
LuckyCanvasCompatResult<C>
copyWith({
- C? config,
- double? width,
- double? height,
- List<
LuckyCanvasCompatWarning> ? warnings,
返回替换非 null 参数的结果副本。
Implementation
LuckyCanvasCompatResult<C> copyWith(
{C? config,
double? width,
double? height,
List<LuckyCanvasCompatWarning>? warnings}) =>
LuckyCanvasCompatResult(
config: config ?? this.config,
width: width ?? this.width,
height: height ?? this.height,
warnings: warnings ?? this.warnings);