showImageViewer method

dynamic showImageViewer(
  1. BuildContext context, {
  2. required bool blur,
  3. required double sigma,
  4. Color? closeColor,
  5. Object? tag,
})

Implementation

showImageViewer(
  final BuildContext context, {
  required final bool blur,
  required final double sigma,
  final Color? closeColor,
  final Object? tag,
}) =>
_bytes == null
? throw Exception('There is no any image loaded')
: imageViewerDialog(context,
    tag        : tag    ?? Random().nextInt(100000),
    bytes      : _bytes ?? Uint8List(0),
    blur       : blur,
    sigma      : sigma,
    closeColor : closeColor
  );