Input constructor
const
Input(
{ - required String id,
- String? src,
- String? filePath,
- String? previewFilePath,
- InputType? type,
- InputType? type1,
- InputType? type2,
- required int channel,
- required Sampler sampler,
- required int published,
})
Builds a Input
- id: The input id
- src: The source
- filePath: The file path
- previewFilePath: The preview file path
type
: The type. If present type1
and type2
values are ignored and both fields set with type
type1
: The type1
type2
: The type2
- channel: The channel number
- sampler: The sampler
- published: The published
Implementation
const Input(
{required this.id,
this.src,
this.filePath,
this.previewFilePath,
InputType? type,
InputType? type1,
InputType? type2,
required this.channel,
required this.sampler,
required this.published})
: type1 = type ?? type1,
type2 = type ?? type2;