ImageViewer.expand constructor

ImageViewer.expand({
  1. Future<void> onTap()?,
  2. String? htmlImage,
  3. String? assetImage,
  4. bool? alive,
  5. Widget? emptyWidget,
  6. Widget? filledWidget,
  7. Widget? onErrorWidget,
  8. Widget? onLoadingWidget,
  9. EdgeInsetsGeometry? margin,
  10. Color? backgroundColor,
  11. BorderRadius? borderRadius,
  12. Border? border,
  13. BoxShadow? shadow,
  14. BoxFit? fit,
  15. Map<String, String>? headers,
  16. Object? tag,
  17. Duration? duration,
  18. int? maxSize,
})

Implementation

factory ImageViewer.expand({
  final Future<void> Function() ? onTap,
  final String                  ? htmlImage,
  final String                  ? assetImage,
  final bool                    ? alive,
  final Widget                  ? emptyWidget,
  final Widget                  ? filledWidget,
  final Widget                  ? onErrorWidget,
  final Widget                  ? onLoadingWidget,
  final EdgeInsetsGeometry      ? margin,
  final Color                   ? backgroundColor,
  final BorderRadius            ? borderRadius,
  final Border                  ? border,
  final BoxShadow               ? shadow,
  final BoxFit                  ? fit,
  final Map<String, String>     ? headers,
  final Object                  ? tag,
  final Duration                ? duration,
  final int                     ? maxSize,
}) =>
ImageViewer(
  onTap           : onTap,
  htmlImage       : htmlImage,
  assetImage      : assetImage,
  alive           : alive,
  width           : double.infinity,
  height          : double.infinity,
  onErrorWidget   : onErrorWidget,
  onLoadingWidget : onLoadingWidget,
  margin          : margin,
  backgroundColor : backgroundColor,
  borderRadius    : borderRadius,
  border          : border,
  shadow          : shadow,
  fit             : fit ?? BoxFit.cover,
  shape           : BoxShape.rectangle,
  headers         : headers,
  tag             : tag,
  duration        : duration ?? Duration(milliseconds: 250),
  maxSize         : maxSize,
);