elevation property

double elevation
inherited

The z-coordinate relative to the parent at which to place this material.

The value is non-negative.

If debugDisableShadows is set, this value is ignored and no shadow is drawn (an outline is rendered instead).

Implementation

double get elevation => _elevation;
void elevation=(double value)
inherited

Implementation

set elevation(double value) {
  assert(value >= 0.0);
  if (elevation == value) {
    return;
  }
  final bool didNeedCompositing = alwaysNeedsCompositing;
  _elevation = value;
  if (didNeedCompositing != alwaysNeedsCompositing) {
    markNeedsCompositingBitsUpdate();
  }
  markNeedsPaint();
}