elevation property Null safety

double? elevation

The z-coordinate at which to place this app bar relative to its parent.

This property controls the size of the shadow below the app bar.

The value must be non-negative.

If this property is null, then AppBarTheme.elevation of ThemeData.appBarTheme is used. If that is also null, the default value is 4.

See also:

  • shadowColor, which is the color of the shadow below the app bar.
  • shape, which defines the shape of the app bar's Material and its shadow.


final double? elevation;