ancestorWidgetOfExactType method

  1. @Deprecated('Use findAncestorWidgetOfExactType instead. ' 'This feature was deprecated after v1.12.1.')
Widget ancestorWidgetOfExactType (
  1. Type targetType
)
@Deprecated('Use findAncestorWidgetOfExactType instead. ' 'This feature was deprecated after v1.12.1.')

Returns the nearest ancestor widget of the given type, which must be the type of a concrete Widget subclass.

This method is deprecated. Please use findAncestorWidgetOfExactType instead.

Implementation

// TODO(a14n): Remove this when it goes to stable, https://github.com/flutter/flutter/pull/44189
@Deprecated(
  'Use findAncestorWidgetOfExactType instead. '
  'This feature was deprecated after v1.12.1.'
)
Widget ancestorWidgetOfExactType(Type targetType);