copyWith method

OkLch copyWith({
  1. double? l,
  2. double? c,
  3. double? h,
})

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

Implementation

OkLch copyWith({double? l, double? c, double? h}) =>
    OkLch(l ?? this.l, c ?? this.c, h ?? this.h);