Preview constructor
Preview({
- double? height,
- int? currentImage,
- List<
String> ? imagesPath, - PreviewController? controller,
Implementation
Preview({
double? height,
int? currentImage,
List<String>? imagesPath,
PreviewController? controller,
}) : assert(
controller == null || (currentImage == null && imagesPath == null)),
this.height = height ?? 250.0,
this.controller = controller ??
PreviewController(
currentImage: currentImage ?? 0,
filesPath: imagesPath ?? const [],
);