copyWith method

LuckyCanvasCompatResult<C> copyWith({
  1. C? config,
  2. double? width,
  3. double? height,
  4. 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);