WeImagePreview typedef

dynamic WeImagePreview (
  1. {List<String> images,
  2. Color color,
  3. int defaultIndex,
  4. bool indicators,
  5. Color indicatorsColor,
  6. PreviewType type,
  7. void itemBuild}
)

Implementation

typedef WeImagePreview = Function({
//图片
  List<String> images,
//背景颜色
  Color color,
//默认展示
  int defaultIndex,
//指示显示
  bool indicators,
//指示颜色
  Color indicatorsColor,
//图片类型
  PreviewType type,
//自定义item
  void itemBuild,
});