writeContent static method

Future<void> writeContent(
  1. String uri,
  2. Uint8List bytes, {
  3. String mode = "wt",
})

Directly writes a content as a Uint8List

Implementation

static Future<void> writeContent(String uri, Uint8List bytes,
    {String mode = "wt"}) async {
  try {
    await _channel.invokeMethod(
        'writeContent', {"uri": uri, "bytes": bytes, "mode": mode});
  } on Exception {
    throw Exception('Handling URI "$uri" failed.');
  }
}