elevation property

double elevation
final

The z-coordinate at which to place this app bar when it is above other content. This controls the size of the shadow below the app bar.

Defaults to 4, the appropriate elevation for app bars.

If forceElevated is false, the elevation is ignored when the app bar has no content underneath it. For example, if the app bar is pinned but no content is scrolled under it, or if it scrolls with the content, then no shadow is drawn, regardless of the value of elevation.

Implementation

final double elevation