final
This commit is contained in:
parent
dfa87e8488
commit
60dbf75f85
@ -3,5 +3,5 @@ class CardData {
|
||||
final String image;
|
||||
final String species;
|
||||
|
||||
CardData({required this.name, required this.image, required this.species});
|
||||
const CardData({required this.name, required this.image, required this.species});
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ import 'package:lab/repositories/api_interface.dart';
|
||||
import 'package:pretty_dio_logger/pretty_dio_logger.dart';
|
||||
|
||||
class PotterRepository extends ApiInterface {
|
||||
static final Dio _dio = Dio()
|
||||
static final Dio _dio = Dio(BaseOptions(connectTimeout: Duration(seconds: 10)))
|
||||
..interceptors.add(
|
||||
PrettyDioLogger(request: true, requestHeader: true, requestBody: true));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user