TransitionToImage constructor

const TransitionToImage(
  1. {Key key,
  2. @required ImageProvider image,
  3. double width,
  4. double height,
  5. BorderRadius borderRadius,
  6. Color color,
  7. BlendMode blendMode,
  8. BoxFit fit: BoxFit.contain,
  9. Alignment alignment: Alignment.center,
  10. ImageRepeat repeat: ImageRepeat.noRepeat,
  11. bool matchTextDirection: false,
  12. bool invertColors: false,
  13. ImageFilter imageFilter,
  14. Widget placeholder: const Icon(Icons.clear),
  15. PlaceHolderBuilder placeholderBuilder,
  16. Duration duration: const Duration(milliseconds: 300),
  17. Tween tween,
  18. Curve curve: Curves.easeInOut,
  19. TransitionType transitionType: TransitionType.fade,
  20. Widget loadingWidget: const Center(child: const CircularProgressIndicator()),
  21. LoadingWidgetBuilder loadingWidgetBuilder,
  22. bool enableRefresh: false,
  23. bool longPressForceRefresh: false,
  24. bool disableMemoryCache: false,
  25. bool disableMemoryCacheIfFailed: false,
  26. VoidCallback loadedCallback,
  27. VoidCallback loadFailedCallback,
  28. bool forceRebuildWidget: false,
  29. bool printError: false}
)

Implementation

const TransitionToImage({
  Key key,
  @required this.image,
  this.width,
  this.height,
  this.borderRadius,
  this.color,
  this.blendMode,
  this.fit: BoxFit.contain,
  this.alignment = Alignment.center,
  this.repeat = ImageRepeat.noRepeat,
  this.matchTextDirection = false,
  this.invertColors = false,
  this.imageFilter,
  this.placeholder: const Icon(Icons.clear),
  this.placeholderBuilder,
  this.duration: const Duration(milliseconds: 300),
  this.tween,
  this.curve: Curves.easeInOut,
  this.transitionType: TransitionType.fade,
  this.loadingWidget = const Center(child: const CircularProgressIndicator()),
  this.loadingWidgetBuilder,
  this.enableRefresh: false,
  this.longPressForceRefresh: false,
  this.disableMemoryCache: false,
  this.disableMemoryCacheIfFailed: false,
  this.loadedCallback,
  this.loadFailedCallback,
  this.forceRebuildWidget: false,
  this.printError = false,
})  : assert(image != null),
      assert(fit != null),
      assert(alignment != null),
      assert(repeat != null),
      assert(matchTextDirection != null),
      assert(invertColors != null),
      assert(placeholder != null),
      assert(duration != null),
      assert(curve != null),
      assert(transitionType != null),
      assert(loadingWidget != null),
      assert(enableRefresh != null),
      assert(longPressForceRefresh != null),
      assert(disableMemoryCache != null),
      assert(disableMemoryCacheIfFailed != null),
      assert(forceRebuildWidget != null),
      assert(printError != null),
      super(key: key);