copyWith method

NmLayeredCardState copyWith({
  1. List<NmPropertyLayer>? layers,
  2. int? currentLayerIndex,
  3. double? peekOffset,
})

Copy with.

Implementation

NmLayeredCardState copyWith({List<NmPropertyLayer>? layers, int? currentLayerIndex, double? peekOffset}) {
  return NmLayeredCardState(
    layers: layers ?? this.layers,
    currentLayerIndex: currentLayerIndex ?? this.currentLayerIndex,
    peekOffset: peekOffset ?? this.peekOffset,
  );
}