Closed SaurabhS120 closed 2 weeks ago
I am passing baseUrl through @RestApi, it is showing a warning that I am not using the baseUrl parameter from Auto-generated(g.dart) file
@RestApi
With the following comment, this issue can be resolved // ignore_for_file: unused_element example :
// ignore_for_file: unused_element
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'api_service.dart'; // ************************************************************************** // RetrofitGenerator // ************************************************************************** // ignore_for_file: unnecessary_brace_in_string_interps,no_leading_underscores_for_local_identifiers,unused_element class _ApiService implements ApiService { _ApiService( this._dio, { this.baseUrl, }) { baseUrl ??= 'https://fakestoreapi.com'; }
PR is merged for this issue
I am passing baseUrl through
@RestApi
, it is showing a warning that I am not using the baseUrl parameter from Auto-generated(g.dart) fileWith the following comment, this issue can be resolved
// ignore_for_file: unused_element
example :