describeMissingAncestor method

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

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

@override
List<DiagnosticsNode> describeMissingAncestor(
        {required Type expectedAncestorType}) =>
    $value.describeMissingAncestor(
        expectedAncestorType: expectedAncestorType);