resolveHalf static method

bool resolveHalf({
  1. required Set<GlassSheetDetent> detents,
})

Resolve whether the half stop is active, from the public API's detents.

Both GlassSheetDetent.medium and GlassSheetDetent.fitted rest at GlassSheetState.half.

Implementation

static bool resolveHalf({required Set<GlassSheetDetent> detents}) =>
    detents.contains(GlassSheetDetent.medium) ||
    detents.contains(GlassSheetDetent.fitted);