GlassAvatarGroup constructor

const GlassAvatarGroup({
  1. Key? key,
  2. required List<Widget> children,
  3. int? max = 4,
  4. double size = 40,
  5. double overlap = 0.3,
  6. String? semanticLabel,
})

Creates a group of avatars; overlap must be from 0 up to but not including 1.

Implementation

const GlassAvatarGroup({
  super.key,
  required this.children,
  this.max = 4,
  this.size = 40,
  this.overlap = 0.3,
  this.semanticLabel,
}) : assert(max == null || max > 0),
     assert(overlap >= 0 && overlap < 1);