BubbleNode.node constructor

BubbleNode.node({
  1. required List<BubbleNode>? children,
  2. int? padding = 0,
  3. BubbleOptions? options,
})

Implementation

BubbleNode.node({
  required this.children,
  this.padding = 0,
  this.options,
}) : assert(children != null && children.isNotEmpty) {
  for (var child in children!) {
    _value += child.value;
    child.parent = this;
  }
}