toImage method

Image toImage({
  1. Widget frameBuilder(
    1. BuildContext,
    2. Widget,
    3. int?,
    4. bool,
    )?,
  2. Widget loadingBuilder(
    1. BuildContext,
    2. Widget,
    3. ImageChunkEvent?
    )?,
  3. Widget errorBuilder(
    1. BuildContext,
    2. Object,
    3. StackTrace?
    )?,
  4. String? semanticLabel,
  5. bool excludeFromSemantics = false,
  6. double? width,
  7. double? height,
  8. Color? color,
  9. Animation<double>? opacity,
  10. BlendMode? colorBlendMode,
  11. BoxFit? fit,
  12. AlignmentGeometry alignment = Alignment.center,
  13. ImageRepeat repeat = ImageRepeat.noRepeat,
  14. Rect? centerSlice,
  15. bool matchTextDirection = false,
  16. bool gaplessPlayback = false,
  17. bool isAntiAlias = false,
  18. FilterQuality filterQuality = FilterQuality.medium,
})

Converts the ImageProvider to an Image widget.

ImageProviderImageウィジェットに変換します。

Implementation

Image toImage({
  Widget Function(BuildContext, Widget, int?, bool)? frameBuilder,
  Widget Function(BuildContext, Widget, ImageChunkEvent?)? loadingBuilder,
  Widget Function(BuildContext, Object, StackTrace?)? errorBuilder,
  String? semanticLabel,
  bool excludeFromSemantics = false,
  double? width,
  double? height,
  Color? color,
  Animation<double>? opacity,
  BlendMode? colorBlendMode,
  BoxFit? fit,
  AlignmentGeometry alignment = Alignment.center,
  ImageRepeat repeat = ImageRepeat.noRepeat,
  Rect? centerSlice,
  bool matchTextDirection = false,
  bool gaplessPlayback = false,
  bool isAntiAlias = false,
  FilterQuality filterQuality = FilterQuality.medium,
}) {
  return Image(
    image: this,
    frameBuilder: frameBuilder,
    loadingBuilder: loadingBuilder,
    errorBuilder: errorBuilder,
    semanticLabel: semanticLabel,
    excludeFromSemantics: excludeFromSemantics,
    width: width,
    height: height,
    color: color,
    opacity: opacity,
    colorBlendMode: colorBlendMode,
    fit: fit,
    alignment: alignment,
    repeat: repeat,
    centerSlice: centerSlice,
    matchTextDirection: matchTextDirection,
    gaplessPlayback: gaplessPlayback,
    isAntiAlias: isAntiAlias,
    filterQuality: filterQuality,
  );
}