ImageViewer constructor

const ImageViewer({
  1. Key? key,
  2. required String url,
  3. required double height,
  4. double? width,
  5. BoxFit? fit,
})

Implementation

const ImageViewer({
  Key? key,
  required this.url,
  required this.height,
  this.width,
  this.fit
}) :  assert(url != "",'url can not be empty!'),
      assert(height > 0, 'height must be more than 0'),
      super(key:key);