GlitterStack constructor

const GlitterStack({
  1. Key? key,
  2. AlignmentGeometry alignment = AlignmentDirectional.topStart,
  3. TextDirection? textDirection,
  4. StackFit fit = StackFit.loose,
  5. Clip clipBehavior = Clip.hardEdge,
  6. List<Widget> children = const <Widget>[],
  7. double? width,
  8. double? height,
  9. Color backgroundColor = const Color(0x00000000),
  10. double? minSize,
  11. double? maxSize,
  12. Duration? duration,
  13. Duration? inDuration,
  14. Duration? outDuration,
  15. Duration? interval,
  16. Color? color,
  17. double? maxOpacity,
})

Creates a widget that shows multiple Glitters.

This widget and Glitters have some parameters in common. If different values are passed to parameters with the same name of both widgets, the one in Glitters is used.

You can set common settings for multiple Glitters widgets set as children.

Implementation

const GlitterStack({
  Key? key,
  this.alignment = AlignmentDirectional.topStart,
  this.textDirection,
  this.fit = StackFit.loose,
  this.clipBehavior = Clip.hardEdge,
  this.children = const <Widget>[],
  this.width,
  this.height,
  this.backgroundColor = const Color(0x00000000),
  this.minSize,
  this.maxSize,
  this.duration,
  this.inDuration,
  this.outDuration,
  this.interval,
  this.color,
  this.maxOpacity,
})  : assert(minSize == null ||
          minSize > 0.0 && (maxSize == null || maxSize >= minSize)),
      assert(maxSize == null ||
          maxSize > 0.0 && (minSize == null || minSize <= maxSize)),
      assert(maxOpacity == null || maxOpacity > 0.0 && maxOpacity <= 1.0),
      super(key: key);