resolvePeek static method
Resolve whether the peek floor is active, from the public API's detents and mode.
The peek floor is active when:
- GlassSheetDetent.small is in
detents. - GlassSheetMode.persistent is active (a persistent sheet is DEFINED by resting on a floor instead of dismissing).
Implementation
static bool resolvePeek({
required Set<GlassSheetDetent> detents,
required GlassSheetMode mode,
}) =>
detents.contains(GlassSheetDetent.small) ||
mode == GlassSheetMode.persistent;