WrapperImage.size constructor

WrapperImage.size({
  1. Key? key,
  2. required String url,
  3. required num size,
  4. BoxFit fit = BoxFit.contain,
  5. bool hold = false,
  6. bool circle = false,
  7. bool fillet = false,
  8. bool square = true,
  9. num radius = 0,
  10. List<String>? browseList,
  11. ValueNotifier<File>? photo,
  12. void delete()?,
  13. PlaceholderWidgetBuilder? placeholderWidgetBuilder,
  14. LoadingErrorWidgetBuilder? loadingErrorWidgetBuilder,
})

Implementation

WrapperImage.size({
  Key? key,
  required this.url,
  required num size,
  this.fit: BoxFit.contain,
  this.hold = false,
  this.circle = false,
  this.fillet = false,
  this.square = true,
  this.radius = 0,
  this.browseList,
  this.photo,
  this.delete,
  this.placeholderWidgetBuilder,
  this.loadingErrorWidgetBuilder,
})  : this.width = size.toDouble(),
      this.height = size.toDouble(),
      super(key: key);