validate property

  1. @override
bool Function(Node node) get validate
override

validate the node.

return true if the node is valid. return false if the node is invalid, and the node will be displayed as a PlaceHolder widget.

Implementation

@override
BlockComponentValidate get validate => (node) => node.children.isEmpty;
set validate (BlockComponentValidate value)
inherited

validate the node.

return true if the node is valid. return false if the node is invalid, and the node will be displayed as a PlaceHolder widget.

Implementation

BlockComponentValidate validate = (_) => true;