getDeviceDrmId static method

FutureOr<String> getDeviceDrmId()

only work for android and ios

Implementation

static FutureOr<String> getDeviceDrmId() async {
  try {
    if (Dart.isWeb) {
      return "";
    }
    if (Dart.isAndroid || Dart.isIOS) {
      return (await methodChannel.invokeMethod<String?>('getDeviceDrmId')) ?? "";
    }
  } catch (e) {
    return "";
  }
  return "";
}