get_file_weight 1.0.1 get_file_weight: ^1.0.1 copied to clipboard
Librería para obtener el peso de un XFile.
Librería para obtener peso de una imagen.
Uso #
import 'package:get_file_weight/get_file_weight.dart';
final imagePicker = ImagePicker();
final xFile = await imagePicker.pickImage(source: ImageSource.gallery);
var fileWeight = FileWeight();
print('Weight: ${fileWeight.getWeight(xFile)} bytes');