getElevation method Null safety
- BuildContext context
Implementation
MaterialStateProperty<double?>? getElevation(BuildContext context) {
return MaterialStateProperty.resolveWith((states) =>
elevation ?? _getMaterialStyle(context)?.elevation?.resolve(states));
}