describeMissingAncestor method
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);