margin property

EdgeInsets margin
final

margin applies to 📚 SurfaceLayer.BASE and the 🌟 Surface as a whole.

padding is always ignored by the 📚 SurfaceLayer.BASE, because its padding is determined by Peek.peek.

See 🔛 Shape.padLayer, however, for options on how to distribute the padding between (default) SurfaceLayer.CHILD or SurfaceLayer.MATERIAL.

  • Special case where padLayer == SurfaceLayer.BASE splits the padding between 📚 MATERIAL and 📚 CHILD SurfaceLayers.

Implementation

final EdgeInsets margin, padding;