CachedImageBuilder constructor

const CachedImageBuilder({
  1. required Key? key,
  2. required Widget builder(
    1. BuildContext context
    ),
  3. double? width,
  4. double? height,
  5. bool showLoadingIndicator = false,
  6. Color? coverBackgroundColor,
})

Cached image widget.

キャッシュされた画像を表示するためのウィジェット。

Implementation

const CachedImageBuilder({
  required super.key,
  required this.builder,
  this.width,
  this.height,
  this.showLoadingIndicator = false,
  this.coverBackgroundColor,
}) : assert(coverBackgroundColor == null || showLoadingIndicator,
          "coverBackgroundColor is only used when showLoadingIndicator is true");