Peek constructor
const
Peek({
- double peek = 0,
- double peekRatio = 1,
- AlignmentGeometry peekAlignment = Alignment.center,
🔲 Peek
A 🌟 Surface may be provided a 🔲 Peek to define several attributes about the shared space at the adjacent edge of 📚 SurfaceLayer.BASE and 📚 SurfaceLayer.MATERIAL.
- It may be considered to function like a border for the Surface.child content.
- Note that Surface does not currently support actual Borders.
- To give a border to a Surface, provide a Surface as a
child
to a DecoratedBox or Container.
Implementation
const Peek({
this.peek = 0,
this.peekRatio = 1,
this.peekAlignment = Alignment.center,
}) : assert(peek >= 0, '[Peek] > Provide a non-negative `peek`.');