Peek constructor
const
Peek(
- {double peek = 0,
- double ratio = 1,
- 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
- Note: to give this 🌟
Surface
a true BorderSide, see 🔰 Shape.border.
According to 🔲 Peek.alignment, a side(s) is given special treatment:
- thicker (default Peek.ratio
== 2.0
) or - thinner (
0 >
Peek.ratio> 1.0
)
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`.');