EntertainmentConfigurationLocation constructor
EntertainmentConfigurationLocation({
- required Relative service,
- EntertainmentConfigurationPosition? position,
- required List<
EntertainmentConfigurationPosition> positions, - required double equalizationFactor,
Creates a EntertainmentConfigurationLocation object.
Implementation
EntertainmentConfigurationLocation({
required this.service,
EntertainmentConfigurationPosition? position,
required this.positions,
required double equalizationFactor,
}) : assert(Validators.isUnitInterval(equalizationFactor),
"`equalizationFactor` must be between 0 and 1 (inclusive)"),
position = position ?? EntertainmentConfigurationPosition.empty(),
_originalService = service.copyWith(),
_originalPositions =
positions.map((position) => position.copyWith()).toList(),
_equalizationFactor = equalizationFactor,
_originalEqualizationFactor = equalizationFactor;