copyWith method

Hsv copyWith({
  1. double? h,
  2. double? s,
  3. double? v,
})

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

Implementation

Hsv copyWith({double? h, double? s, double? v}) =>
    Hsv(h ?? this.h, s ?? this.s, v ?? this.v);