loadImageLocal static method

Widget loadImageLocal(
  1. String path,
  2. double width,
  3. double height, {
  4. BoxFit fit = BoxFit.cover,
  5. Uint8List? thumbdata,
})

Implementation

static Widget loadImageLocal(String path, double width, double height, {BoxFit fit = BoxFit.cover, Uint8List? thumbdata}){
  if(thumbdata == null) return Image.file(File(path), width: width, height: height, fit: fit,);
  return Image.memory(thumbdata, width: width, height: height, fit: fit);
}