size method

  1. @override
Future<int> size(
  1. String path
)
override

Returns the size of the file in bytes.

Implementation

@override
Future<int> size(String path) async {
  final file = _file(path);
  final stat = await file.stat();
  return stat.size;
}