imageFromBase64String method

Widget imageFromBase64String(
  1. String base64String, {
  2. double? width,
  3. double? height,
  4. Color? color,
})

Implementation

Widget imageFromBase64String(
    String base64String, {double? width, double? height, Color? color}) {
  if (base64String.isEmpty) return Container();
  return Image.memory(
    base64Decode(base64String),
    color: color,
    width: width,
    height: height,
  );
}