JsonMemoryImage constructor
JsonMemoryImage({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- Alignment alignment = Alignment.center,
- int? cacheHeight,
- int? cacheWidth,
- Rect? centerSlice,
- Color? color,
- BlendMode? colorBlendMode,
- Widget errorBuilder()?,
- bool excludeFromSemantics = false,
- FilterQuality filterQuality = FilterQuality.low,
- BoxFit? fit,
- Widget frameBuilder(
- BuildContext,
- Widget,
- int?,
- bool,
- bool gaplessPlayback = false,
- double? height,
- required dynamic image,
- bool isAntiAlias = false,
- bool matchTextDirection = false,
- double? opacity,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- double scale = 1.0,
- String? semanticLabel,
- double? width,
Implementation
JsonMemoryImage({
Map<String, dynamic> args = const {},
JsonWidgetRegistry? registry,
this.alignment = Alignment.center,
this.cacheHeight,
this.cacheWidth,
this.centerSlice,
this.color,
this.colorBlendMode,
this.errorBuilder,
this.excludeFromSemantics = false,
this.filterQuality = FilterQuality.low,
this.fit,
this.frameBuilder,
this.gaplessPlayback = false,
this.height,
required this.image,
this.isAntiAlias = false,
this.matchTextDirection = false,
this.opacity,
this.repeat = ImageRepeat.noRepeat,
this.scale = 1.0,
this.semanticLabel,
this.width,
}) : super(
jsonWidgetArgs: JsonMemoryImageBuilderModel.fromDynamic(
{
'alignment': alignment,
'cacheHeight': cacheHeight,
'cacheWidth': cacheWidth,
'centerSlice': centerSlice,
'color': color,
'colorBlendMode': colorBlendMode,
'errorBuilder': errorBuilder,
'excludeFromSemantics': excludeFromSemantics,
'filterQuality': filterQuality,
'fit': fit,
'frameBuilder': frameBuilder,
'gaplessPlayback': gaplessPlayback,
'height': height,
'image': image,
'isAntiAlias': isAntiAlias,
'matchTextDirection': matchTextDirection,
'opacity': opacity,
'repeat': repeat,
'scale': scale,
'semanticLabel': semanticLabel,
'width': width,
...args,
},
args: args,
registry: registry,
),
jsonWidgetBuilder: () => JsonMemoryImageBuilder(
args: JsonMemoryImageBuilderModel.fromDynamic(
{
'alignment': alignment,
'cacheHeight': cacheHeight,
'cacheWidth': cacheWidth,
'centerSlice': centerSlice,
'color': color,
'colorBlendMode': colorBlendMode,
'errorBuilder': errorBuilder,
'excludeFromSemantics': excludeFromSemantics,
'filterQuality': filterQuality,
'fit': fit,
'frameBuilder': frameBuilder,
'gaplessPlayback': gaplessPlayback,
'height': height,
'image': image,
'isAntiAlias': isAntiAlias,
'matchTextDirection': matchTextDirection,
'opacity': opacity,
'repeat': repeat,
'scale': scale,
'semanticLabel': semanticLabel,
'width': width,
...args,
},
args: args,
registry: registry,
),
),
jsonWidgetType: JsonMemoryImageBuilder.kType,
);