dio static method

Future<Dio> dio()

Implementation

static Future<Dio> dio() async {
  return Dio(buildBaseOptions())..interceptors.add(DioCacheInterceptor(options: await getCacheOptions()));
}