zElevation property

int get zElevation

The elevation the material-shadow component should show.

When a button is pressed, this is increased.

Implementation

int get zElevation =>
    _isMouseDown || _focused ? mediumElevation : lowElevation;