version method

String version()

Version - mraa_get_version

Get the version string of this MRAA library autogenerated from its git tag. The version returned may not be what is expected however it is a reliable number associated with the git tag closest to that version at build time.

Implementation

String version() {
  final ptr = _impl.mraa_get_version();
  if (ptr != nullptr) {
    return ptr.cast<ffi.Utf8>().toDartString();
  }
  return 'Version information is unavailable';
}