lastModified method

  1. @override
Future<DateTime> lastModified(
  1. String path
)

Get the file's last modification time.

Implementation

@override
Future<DateTime> lastModified(String path) {
  return _attempt(DateTime.now(), () async {
    return (await bucket.head(_objectKey(path)))?.uploaded ?? DateTime.now();
  });
}