preview method
void
preview(
- BuildContext context, {
- double? sigma,
- bool? barrierDismissible,
- Object? tag,
- Color? barrierColor,
- Widget? closeButton,
- 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
);
}