EntertainmentConfigurationLocation constructor

EntertainmentConfigurationLocation({
  1. required Relative service,
  2. EntertainmentConfigurationPosition? position,
  3. required List<EntertainmentConfigurationPosition> positions,
  4. required double equalizationFactor,
})

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;