separatingFold property
DisplayFeature?
get
separatingFold
The fold that splits the screen into two panes, or null.
Use this to decide between a single-pane and a two-pane layout.
Implementation
DisplayFeature? get separatingFold {
for (final f in hinges) {
if (f.state == DisplayFeatureState.postureHalfOpened ||
f.bounds.shortestSide > 0) {
return f;
}
}
return hinges.isEmpty ? null : hinges.first;
}