glassEffectId property

String? glassEffectId
final

Optional ID for glass effect morphing transitions.

When a button with a glassEffectId appears or disappears within a glass effect container, it will morph into/out of other buttons with the same ID or nearby buttons. This enables smooth transitions.

Only applies on iOS 26+ and macOS 26+ when using glass styles.

Implementation

final String? glassEffectId;