copyWith method

OkLab copyWith({
  1. double? l,
  2. double? a,
  3. double? b,
})

返回替换指定分量后的副本,对应 Kotlin data class 的 copy

Implementation

OkLab copyWith({double? l, double? a, double? b}) =>
    OkLab(l ?? this.l, a ?? this.a, b ?? this.b);