copyWith method

FlutterAuthClientOptions copyWith({
  1. AuthFlowType? authFlowType,
  2. bool? autoRefreshToken,
  3. LocalStorage? localStorage,
  4. GotrueAsyncStorage? pkceAsyncStorage,
  5. bool? detectSessionInUri,
})

Implementation

FlutterAuthClientOptions copyWith({
  AuthFlowType? authFlowType,
  bool? autoRefreshToken,
  LocalStorage? localStorage,
  GotrueAsyncStorage? pkceAsyncStorage,
  bool? detectSessionInUri,
}) {
  return FlutterAuthClientOptions(
    authFlowType: authFlowType ?? this.authFlowType,
    autoRefreshToken: autoRefreshToken ?? this.autoRefreshToken,
    localStorage: localStorage ?? this.localStorage,
    pkceAsyncStorage: pkceAsyncStorage ?? this.pkceAsyncStorage,
    detectSessionInUri: detectSessionInUri ?? this.detectSessionInUri,
  );
}