inheritFromElement method

  1. @Deprecated('Use dependOnInheritedElement instead. ' 'This feature was deprecated after v1.12.1.')
  2. @override
InheritedWidget inheritFromElement (InheritedElement ancestor, { Object aspect })
@Deprecated('Use dependOnInheritedElement instead. ' 'This feature was deprecated after v1.12.1.'), override

Registers this build context with ancestor such that when ancestor's widget changes this build context is rebuilt.

This method is deprecated. Please use dependOnInheritedElement instead.

Implementation

@Deprecated(
  'Use dependOnInheritedElement instead. '
  'This feature was deprecated after v1.12.1.'
)
@override
InheritedWidget inheritFromElement(InheritedElement ancestor, { Object aspect }) {
  return dependOnInheritedElement(ancestor, aspect: aspect);
}