write method

Future<void> write(
  1. String path,
  2. List<int> bytes
)

Writes bytes to path under the served root.

Implementation

Future<void> write(String path, List<int> bytes) => _call(
  DriveOp.write,
  fields: {'path': path},
  payload: Uint8List.fromList(bytes),
);