TimestampChange constructor Null safety

TimestampChange(
  1. {Timestamp? previousValue,
  2. Timestamp? newValue}
)

Implementation

factory TimestampChange({
  $4.Timestamp? previousValue,
  $4.Timestamp? newValue,
}) {
  final _result = create();
  if (previousValue != null) {
    _result.previousValue = previousValue;
  }
  if (newValue != null) {
    _result.newValue = newValue;
  }
  return _result;
}