wrapDepthWithThemeData function
double
wrapDepthWithThemeData({
- required NeumorphicThemeData themeData,
- required bool styleEnableDepth,
- required double depth,
Implementation
double wrapDepthWithThemeData(
{required NeumorphicThemeData themeData,
required bool styleEnableDepth,
required double depth}) {
if (themeData.disableDepth) {
return 0;
} else {
return depth;
}
}