copyWith method
Builds a copy of a Input
id
: The input idsrc
: The sourcefilePath
: The file pathpreviewFilePath
: The preview file pathtype
: The type. If presenttype1
andtype2
values are ignored and both fields set withtype
type1
: The type1type2
: The type2channel
: The channel numbersampler
: The samplerpublished
: The published
Implementation
Input copyWith({
String? id,
String? src,
String? filePath,
String? previewFilePath,
InputType? type,
InputType? type1,
InputType? type2,
int? channel,
Sampler? sampler,
int? published,
}) {
return Input(
id: id ?? this.id,
src: src ?? this.src,
filePath: filePath ?? this.filePath,
previewFilePath: previewFilePath ?? this.previewFilePath,
type1: (type ?? type1) ?? this.type1,
type2: (type ?? type2) ?? this.type2,
channel: channel ?? this.channel,
sampler: sampler ?? this.sampler,
published: published ?? this.published,
);
}