Box constructor

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

Implementation

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