validate method

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

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
bool validate(Node node) =>
    node.attributes[LinkPreviewBlockKeys.url]!.isNotEmpty;