getDrmInfo method

  1. @override
Future<DrmInfo> getDrmInfo()
override

Implementation

@override
Future<DrmInfo> getDrmInfo() async {
  final map = await methodChannel.invokeMapMethod<dynamic, dynamic>('getDrmInfo');
  if (map == null) {
    throw PlatformException(
      code: 'NULL_RESPONSE',
      message: 'getDrmInfo returned null',
    );
  }
  return DrmInfo.fromMap(map);
}