MaterialShadow class Null safety

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.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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