MaterialShadow class

Not very accurate Material's elevation value to BoxShadow converter which wraps it into BoxDecoration for use with Container.decoration.

Values from 1 to 8 were calculated through trials and side by side comparison.

Constructors

MaterialShadow()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

asBoxDecoration({required MaterialElevation elevation}) BoxDecoration