copyWith method
Implementation
StopwatchModel copyWith({
Duration? elapsed,
bool? running,
DateTime? lastTick,
Object? id,
bool clearLastTick = false,
}) =>
StopwatchModel(
elapsed: elapsed ?? this.elapsed,
running: running ?? this.running,
lastTick: clearLastTick ? null : (lastTick ?? this.lastTick),
id: id ?? this.id,
);