doesDependOnInheritedElement method Null safety

  1. @protected
bool doesDependOnInheritedElement(
  1. InheritedElement ancestor
)
protected">@protected

Returns true if dependOnInheritedElement was previously called with ancestor.

Implementation

@protected
bool doesDependOnInheritedElement(InheritedElement ancestor) =>
    _dependencies != null && _dependencies!.contains(ancestor);