BooleanChange constructor Null safety

BooleanChange(
  1. {bool? previousValue,
  2. bool? newValue}
)

Implementation

factory BooleanChange({
  $core.bool? previousValue,
  $core.bool? newValue,
}) {
  final _result = create();
  if (previousValue != null) {
    _result.previousValue = previousValue;
  }
  if (newValue != null) {
    _result.newValue = newValue;
  }
  return _result;
}