ratio property

double ratio
final

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

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

Having declared a side(s)✝ to receive special treatment by 🔀 alignment, a 📏 ratio defines the scale by which to multiply this (these) inset(s):

  • Defaults to thicker ratio == 2.0
  • A larger ratio creates a more dramatic effect
  • Thinner side(s) possible by passing 0 > ratio > 1

✝ More than one side is affected by a corner-set Alignment, such as Alignment.bottomRight.

Implementation

final double peek, ratio;