processChildren method

  1. @override
Iterable<NodeData> processChildren(
  1. Status status,
  2. NodeControl control,
  3. FlowMessage message
)
override

Implementation

@override
Iterable<NodeData> processChildren(Status status, NodeControl control, FlowMessage message) {
  if (_oldStatus != status) {
    _cachedNode = null;
    _oldStatus = status;
  }
  if (_cachedNode == null)
    _cachedNode = NodeData(this, status, control);
  else
    _cachedNode!.clear();
  return [_cachedNode!];
}