copyWith method
NmLayeredCardState
copyWith({
- List<
NmPropertyLayer> ? layers, - int? currentLayerIndex,
- 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,
);
}