getFileSize method

  1. @override
Future<int> getFileSize(
  1. String filePath
)
override

Gets the size of a file in bytes

Implementation

@override
Future<int> getFileSize(String filePath) async {
  final file = File(filePath);
  return await file.length();
}