debugTypicalAncestorWidgetClass property

Type get debugTypicalAncestorWidgetClass

Describes the RenderObjectWidget that is typically used to set up the ParentData that applyParentData will write to.

This is only used in error messages to tell users what widget typically wraps this ParentDataWidget through debugTypicalAncestorWidgetDescription.

Implementations

The returned Type should describe a subclass of RenderObjectWidget. If more than one Type is supported, use debugTypicalAncestorWidgetDescription, which typically inserts this value but can be overridden to describe more than one Type.

  @override
  Type get debugTypicalAncestorWidgetClass => FrogJar;

If the "typical" parent is generic (Foo<T>), consider specifying either a typical type argument (e.g. Foo<int> if int is typically how the type is specialized), or specifying the upper bound (e.g. Foo<Object?>).

Implementation

Type get debugTypicalAncestorWidgetClass;