stop method

Future<bool> stop(
  1. ChannelsRequest request
)

Unsubscribes from a channel.

Note that the id and resourceId in the constructed DriveChannel object in the request must be the same as those in the DriveChannel object subscribed through the Changes.subscribe API.

Implementation

Future<bool> stop(ChannelsRequest request) async {
  return await driveMethodChannel.invokeMethod(
    'Channels#Stop',
    <dynamic, dynamic>{
      'channel': request.channel?.toJson(),
      'request': request.toJson(),
      'extraParams': request.channel?.paramsToSet
    }..removeWhere((dynamic k, dynamic v) => v == null),
  );
}