copyWith method

UPlaylist copyWith({
  1. String? name,
  2. List<String>? paths,
})

Implementation

UPlaylist copyWith({String? name, List<String>? paths}) => UPlaylist(
  id: id,
  name: name ?? this.name,
  paths: paths ?? this.paths,
  createdAt: createdAt,
  updatedAt: DateTime.now().millisecondsSinceEpoch,
);