WeImagePreview typedef

dynamic WeImagePreview ({List<String> images, Color color, int defaultIndex, bool indicators, Color indicatorsColor, PreviewType type, void itemBuild })

Implementation

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