put method
Write the contents of a file.
Implementation
@override
Future<bool> put(
String path,
dynamic contents, {
Map<String, dynamic>? options,
}) {
return _write(() async {
final value = await _uploadValue(contents);
final object = await bucket.put(
_objectKey(path),
value,
options: _putOptions(options),
);
return object != null;
});
}