ControllerMaid<Box>.of constructor
ControllerMaid<Box>.of (
- Box box, [
- bool vow = false
Spawn with initial box
.
By default, maid would not vow
to secure the box forever.
So it can be take by another box.
Implementation
factory ControllerMaid.of(Box box, [bool vow = false]) =>
vow ? VowedControllerMaid._hold(box) : ControllerMaid._hold(box);