getSize method

double getSize(
  1. File image
)

Implementation

double getSize(File image) {
  final bytes = File(image.path).lengthSync();

  final kb = bytes / 1024;
  final mb = kb / 1024;
  return mb;
}