describeMissingAncestor method Null safety

List<DiagnosticsNode> describeMissingAncestor(
  1. {required Type expectedAncestorType}
)

Adds a description of a specific type of widget missing from the current build context's ancestry tree.

You can find an example of using this method in debugCheckHasMaterial.

Implementation

List<DiagnosticsNode> describeMissingAncestor({ required Type expectedAncestorType });