setProperty method

void setProperty(
  1. String name,
  2. String value
)

Implementation

void setProperty(String name, String value) {
  final ck = name.toNativeUtf8();
  final cv = value.toNativeUtf8();
  _player.ref.setProperty.asFunction<
          void Function(Pointer<mdkPlayer>, Pointer<Char>, Pointer<Char>)>()(
      _player.ref.object, ck.cast(), cv.cast());
  malloc.free(ck);
  malloc.free(cv);
}