MPadding.set constructor

const MPadding.set({
  1. dynamic start = 0,
  2. dynamic top = 0,
  3. dynamic end = 0,
  4. dynamic bottom = 0,
  5. dynamic all = 0,
  6. double vertical = 0,
  7. double horizontal = 0,
})

Implementation

const MPadding.set({
  start = 0,
  top = 0,
  end = 0,
  bottom = 0,
  all = 0,
  this.vertical = 0,
  this.horizontal = 0,
}) : super.only(
        bottom: bottom + vertical + all,
        top: top + vertical + all,
        end: end + horizontal + all,
        start: start + horizontal + all,
      );