replace method

Triple<L, M, R> replace({
  1. L? left,
  2. M? middle,
  3. R? right,
})

Creates a Triple which left, middle and/or right values have been replaced.

Implementation

Triple<L, M, R> replace({L? left, M? middle, R? right}) => Triple(left ?? this.left, middle ?? this.middle, right ?? this.right);