Peek constructor

const Peek(
  1. {double peek = 0,
  2. double ratio = 1,
  3. AlignmentGeometry alignment = Alignment.center}
)

Consider Peek to be a description of how the 📚 BASE is exposed behind the 📚 MATERIAL.

🔲 Peek.peek is applied as insets to 📚 SurfaceLayer.MATERIAL.

It may be thought to function like a border for the child content, but


According to 🔲 Peek.alignment, a side(s) is given special treatment:

Defaults Alignment.center such that no side(s) receive(s) special treatment regardless of 🔲 Peek.peek.

Implementation

const Peek({
  this.peek = 0,
  this.ratio = 1,
  this.alignment = Alignment.center,
}) : assert(peek >= 0, '[Peek] > Provide a non-negative `peek`.');