getProperty method

String? getProperty(
  1. String name
)

Get property value for name

Implementation

String? getProperty(String name) {
  final ck = name.toNativeUtf8();
  final cv = _player.ref.getProperty.asFunction<
          Pointer<Char> Function(Pointer<mdkPlayer>, Pointer<Char>)>()(
      _player.ref.object, ck.cast());
  malloc.free(ck);
  if (cv.address == 0) {
    return null;
  }
  return cv.cast<Utf8>().toDartString();
}