WalletApi constructor
WalletApi({})
Implementation
WalletApi({
String baseUrl = 'https://wallet.fuse.io/api',
List<Interceptor> interceptors = const [],
}) {
_dio = Dio(
BaseOptions(
baseUrl: baseUrl,
headers: {
'Content-Type': 'application/json',
},
),
);
if (interceptors.isNotEmpty) {
_dio.interceptors.addAll(interceptors);
}
}