platformName method

String platformName()

Platform name - mraa_get_platform_name

Return the Platform's name. If no platform is detected NULL is returned.

Implementation

String platformName() {
  final ptr = _impl.mraa_get_platform_name();
  if (ptr != nullptr) {
    return ptr.cast<ffi.Utf8>().toDartString();
  }
  return 'Platform Name is unavailable';
}