fromMemory static method
dynamic
fromMemory({})
Implementation
static fromMemory({
required Uint8List byte,
required double size,
Color? errorBackgroundColor,
Color? errorTextColor,
String? errorText,
}) {
return renderWidget(
Image.memory(
byte,
fit: BoxFit.cover,
width: size,
height: size,
errorBuilder: (context, error, stackTrace) => errorBuilder(
context,
error,
stackTrace,
size,
size / 2,
errorBackgroundColor,
errorTextColor,
errorText,
),
frameBuilder: frameBuilder,
),
size,
);
}