wrapDepthWithThemeData function

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

Implementation

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