Backend.set constructor

Backend.set(
  1. String fromName
)

Initializes a backend using the provided name.

The name is case-insensitive. Retrieves the integer value of the backend from the C++ backend.

Implementation

Backend.set(String fromName) {
  String lowerName = fromName.toLowerCase();
  value = _c_string_to_backend_type(lowerName.toNativeUtf8());
  raiseForStatus();
  name = fromName;
}