The Dart SDK is currently in experimental status. If you would like to provide feedback, please reach out to us with your suggestions and comments on our Discord.
Dart - bucket.file.write()
Write a file to a bucket.
import 'package:nitric_sdk/nitric.dart';
final assets = Nitric.bucket("assets").allow([
BucketPermission.write,
]);
final logo = assets.file("images/logo.png");
await logo.writ("someImageData");
Parameters
- Name
data
- Required
- Required
- Type
- String
- Description
The data to write to the file.
Examples
Write a file
import 'package:nitric_sdk/nitric.dart';
final assets = Nitric.bucket("assets").allow([
BucketPermission.write,
]);
final logo = assets.file("images/logo.png");
await logo.writ("someImageData");