preview method

void preview(
  1. BuildContext context, {
  2. double? sigma,
  3. bool? barrierDismissible,
  4. Object? tag,
  5. Color? barrierColor,
  6. Widget? closeButton,
  7. BoxDecoration? decoration,
})

Displays a preview of the current image using showImagePreview. Allows customization of preview dialog appearance.

Implementation

void preview( final BuildContext context, {
  final double        ? sigma,
  final bool          ? barrierDismissible,
  final Object        ? tag,
  final Color         ? barrierColor,
  final Widget        ? closeButton,
  final BoxDecoration ? decoration
}) {
  // Show image preview dialog with provided options
  showImagePreview(
    context,
    bytes               : _imageData?.bytes == null ? null : Uint8List.fromList(_imageData!.bytes),
    sigma               : sigma ?? 4,
    barrierDismissible  : barrierDismissible??false,
    tag                 : tag,
    barrierColor        : barrierColor,
    closeButton         : closeButton,
    decoration          : decoration
  );
}