cancel method

Implementation

Future<VideoRequestDetails> cancel() async {
  if (_encodeData?.id == null) {
    throw Exception('Call build() before cancel()');
  }
  final response = await TruvideoVideoSdk.cancelVideo(_encodeData!.id);
  _encodeData = VideoRequestDetails.fromJsonString(response!);
  return _encodeData!;
}