ConfigChange constructor

ConfigChange({
  1. String? element,
  2. String? oldValue,
  3. String? newValue,
  4. ChangeType? changeType,
  5. Iterable<Advice>? advices,
})

Implementation

factory ConfigChange({
  $core.String? element,
  $core.String? oldValue,
  $core.String? newValue,
  ChangeType? changeType,
  $core.Iterable<Advice>? advices,
}) {
  final _result = create();
  if (element != null) {
    _result.element = element;
  }
  if (oldValue != null) {
    _result.oldValue = oldValue;
  }
  if (newValue != null) {
    _result.newValue = newValue;
  }
  if (changeType != null) {
    _result.changeType = changeType;
  }
  if (advices != null) {
    _result.advices.addAll(advices);
  }
  return _result;
}