Future<Image> toImage() async { await toUint8List(); if (_imageAsUint8list != null) { return Image.memory(_imageAsUint8list!); } else { throw Exception('A error happens while converting'); } }