ImageStack.providers constructor
ImageStack.providers({
- Key? key,
- required List<
ImageProvider< providers,Object> > - double? imageRadius = 25,
- int? imageCount = 3,
- required int totalCount,
- double? imageBorderWidth = 2,
- Color? imageBorderColor = Colors.grey,
- bool showTotalCount = true,
- TextStyle extraCountTextStyle = const TextStyle(color: Colors.black, fontWeight: FontWeight.w600),
- Color? extraCountBorderColor,
- 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);