getRequestById method

  1. @override
Future<VideoRequestDetails?> getRequestById({
  1. required String id,
})
override

Implementation

@override
Future<VideoRequestDetails?> getRequestById({required String id}) async {
  try {
    final result = await methodChannel.invokeMethod<String>(
      'getRequestById',
      {
        'id': id,
      },
    );
    return result != null ? VideoRequestDetails.fromJsonString(result) : null;
  } on PlatformException {
    rethrow;
  }
}