requireOffset
Require the current offset (in pixels) of the bottom sheet.
The offset will be initialized during the first measurement phase of the provided sheet content.
These are the phases: Composition { -> Effects } -> Layout { Measurement -> Placement } -> Drawing
During the first composition, an IllegalStateException is thrown. In subsequent compositions, the offset will be derived from the anchors of the previous pass. Always prefer accessing the offset from a LaunchedEffect as it will be scheduled to be executed the next frame, after layout.
Throws
If the offset has not been initialized yet