Box constructor

Box({
  1. Lock? lock,
  2. Value? value,
})

Implementation

factory Box({
  $7.Lock? lock,
  $11.Value? value,
}) {
  final _result = create();
  if (lock != null) {
    _result.lock = lock;
  }
  if (value != null) {
    _result.value = value;
  }
  return _result;
}