clone method

DriveCredentials clone({
  1. String? unionId,
  2. String? accessToken,
  3. int? expiresInSeconds,
  4. RefreshTokenCallback? callback,
})

Copies the current object and updates the specified attributes.

Implementation

DriveCredentials clone({
  String? unionId,
  String? accessToken,
  int? expiresInSeconds,
  RefreshTokenCallback? callback,
}) {
  return DriveCredentials(
    unionId: unionId,
    accessToken: accessToken,
    callback: callback,
    expiresInSeconds: expiresInSeconds,
  );
}