I know how to check image width and height:
import 'dart:io';
File image = new File('image.png'); // Or any other way to get a File instance.
var decodedImage = await decodeImageFromList(image.readAsBytesSync());
print(decodedImage.width);
print(decodedImage.height)
But I want to check the image size like 100kb, 200kb, or something like that is there any way, please help me.