WalletApi constructor

WalletApi({
  1. String baseUrl = 'https://wallet.fuse.io/api',
  2. List<Interceptor> interceptors = const [],
})

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);
  }
}