getMarginAnotherHaveElevation static method

double getMarginAnotherHaveElevation(
  1. double spacelevel,
  2. double elevationLevel
)

pages: the title "Feature" have list under it, the list have elevation. i want to set margin bottom to title "Feature"

Implementation

static double getMarginAnotherHaveElevation(double spacelevel , double elevationLevel) {
  final result =  spacelevel - elevationLevel - elevationLevel;
  if( result < 0 ) {
    return 0;
  } else {
    return result;
  }
}