wrapDepthWithThemeData function

double wrapDepthWithThemeData({
  1. required NeumorphicThemeData themeData,
  2. required bool styleEnableDepth,
  3. required double depth,
})

Implementation

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