i have this problem while running the app, which give A file can't be part of more than one library.

import 'package:dio/dio.dart';
import 'package:firstproject/app/constants.dart';
import 'package:firstproject/data/response/responses.dart';
import 'package:retrofit/http.dart';
part 'app_api.g.dart';

@RestApi(baseUrl: Constants.baseUrl)
abstract class AppServiceClient {
 factory AppServiceClient(Dio dio, {String baseUrl}) = _AppServiceClient;

  // this implementation post request
  @POST("customers/login")
  Future<AuthenticationResponse> login(
    @Field("email") String email,
    @Field("password") String password,
  );
}

    // GENERATED CODE - DO NOT MODIFY BY HAND

part of 'app_api.dart';

// **************************************************************************
// RetrofitGenerator
// **************************************************************************

// ignore_for_file: unnecessary_brace_in_string_interps,no_leading_underscores_for_local_identifiers

class _AppServiceClient implements AppServiceClient {
  _AppServiceClient(
    this._dio, {
    this.baseUrl,
  }) {
    baseUrl ??= 'http://hesham060.mocklab.io/';
  }

  final Dio _dio;

  String? baseUrl;

  @override
  Future<AuthenticationResponse> login(
    email,
    password,
  ) async {
    const _extra = <String, dynamic>{};
    final queryParameters = <String, dynamic>{};
    final _headers = <String, dynamic>{};
    final _data = {
      'email': email,
      'password': password,
    };
    final _result = await _dio.fetch<Map<String, dynamic>>(
        _setStreamType<AuthenticationResponse>(Options(
      method: 'POST',
      headers: _headers,
      extra: _extra,
    )
            .compose(
              _dio.options,
              'customers/login',
              queryParameters: queryParameters,
              data: _data,
            )
            .copyWith(baseUrl: baseUrl ?? _dio.options.baseUrl)));
    final value = AuthenticationResponse.fromJson(_result.data!);
    return value;
  }

  RequestOptions _setStreamType<T>(RequestOptions requestOptions) {
    if (T != dynamic &&
        !(requestOptions.responseType == ResponseType.bytes ||
            requestOptions.responseType == ResponseType.stream)) {
      if (T == String) {
        requestOptions.responseType = ResponseType.plain;
      } else {
        requestOptions.responseType = ResponseType.json;
      }
    }
    return requestOptions;
  }
}

Im getting this error

ib/data/network/app_api.g.dart: Error: A file can't be part of more than one library.
Try moving the shared declarations into the libraries, or into a new library.
lib/data/network/app_api.dart: Context: Used as a part in this library.
lib/data/network/app_Api.dart: Context: Used as a part in this library.
lib/data/network/app_Api.dart:9:56: Error: Couldn't find constructor '_AppServiceClient'.
 factory AppServiceClient(Dio dio, {String baseUrl}) = _AppServiceClient;
                                                       ^
lib/data/network/app_Api.dart:9:56: Error: Redirection constructor target not found: '_AppServiceClient'
 factory AppServiceClient(Dio dio, {String baseUrl}) = _AppServiceClient;
                                                       ^
lib/data/network/app_api.g.dart : error : A file can't be part of more than one library. [C:\Users\hesha\OneDrive\Desktop\coding\Mena advanced Course\First Project\firstproject\build\windows\flutter\flutter_assemble.vcxproj]
lib/data/network/app_Api.dart(9,56): error GF7CA4DBF: Couldn't find constructor '_AppServiceClient'. [C:\Users\hesha\OneDrive\Desktop\coding\Mena advanced Course\First Project\firstproject\build\windows\flutter\flutter_assemble.vcxproj]
lib/data/network/app_Api.dart(9,56): error G22A956AA: Redirection constructor target not found: '_AppServiceClient' [C:\Users\hesha\OneDrive\Desktop\coding\Mena advanced Course\First Project\firstproject\build\windows\flutter\flutter_assemble.vcxproj]

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\hesha\OneDrive\Desktop\coding\flatter coding\flutter_windows_2.8.1-stable\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\Users\hesha\OneDrive\Desktop\coding\flatter coding\flutter_windows_2.8.1-stable\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
~~~