ImageStack.providers constructor

ImageStack.providers({
  1. Key? key,
  2. required List<ImageProvider<Object>> providers,
  3. double? imageRadius = 25,
  4. int? imageCount = 3,
  5. required int totalCount,
  6. double? imageBorderWidth = 2,
  7. Color? imageBorderColor = Colors.grey,
  8. bool showTotalCount = true,
  9. TextStyle extraCountTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600),
  10. Color? extraCountBorderColor,
  11. Color backgroundColor = Colors.white,
})

Creates an image stack by passing list of ImageProvider.

The providers and totalCount parameters are required.

Implementation

ImageStack.providers({
  Key? key,
  required this.providers,
  this.imageRadius = 25,
  this.imageCount = 3,
  required this.totalCount,
  this.imageBorderWidth = 2,
  this.imageBorderColor = Colors.grey,
  this.showTotalCount = true,
  this.extraCountTextStyle = const TextStyle(
    color: Colors.black,
    fontWeight: FontWeight.w600,
  ),
  this.extraCountBorderColor,
  this.backgroundColor = Colors.white,
})  : imageList = [],
      children = [],
      widgetBorderColor = null,
      widgetBorderWidth = null,
      widgetCount = null,
      widgetRadius = null,
      imageSource = null,
      super(key: key);