fromMemory static method

dynamic fromMemory({
  1. required Uint8List byte,
  2. required double size,
  3. Color? errorBackgroundColor,
  4. Color? errorTextColor,
  5. String? errorText,
})

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,
  );
}