SafeAreaConfig.all constructor

const SafeAreaConfig.all({
  1. bool? removePaddingFromContent,
  2. bool? bodyHasSlivers,
})

Apply padding on all sides: top, bottom, left and right.

Assumes that the PanelContent.bodyContent is a normal child. (No slivers).

Also, don't remove padding from the content.

This is the default.

Implementation

const SafeAreaConfig.all(
    {bool? removePaddingFromContent, bool? bodyHasSlivers})
    : this.top = true,
      this.bottom = true,
      this.sides = true,
      this.removePaddingFromContent = removePaddingFromContent ?? false,
      this.bodyHasSlivers = bodyHasSlivers ?? false;