Plaintext.withValue constructor

Plaintext.withValue(
  1. Backend backend,
  2. String text
)

Initializes a plaintext C obj with text using the provided Backend.

Implementation

Plaintext.withValue(this.backend, this.text) {
  obj = _c_init_plaintext_value(backend.value, text.toNativeUtf8());
}