supportsHierarchy property

bool get supportsHierarchy
inherited

Whether the widgets supports expansion and child data sets.

When false, the widget falls back to a simple flat list. This is not a recommended use case and is provided for graceful failure. If you intend to use a flat data set consider MaterialSelect.

Implementation

bool get supportsHierarchy => options is Parent;