getMarginAnotherHaveCornerOnly static method

double getMarginAnotherHaveCornerOnly(
  1. double spacelevel,
  2. double cornerLevel
)

case: the another view have corner only without elevation

Implementation

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