Skip to content

How to re-initialize the Dio dynamically #5

@kidozh

Description

@kidozh

I would like to re-initialise the Dio Dynamically but I get a error:

LateInitializationError: Field '_instance@1908345598' has already been initialized.

====

我想在软件之中动态切换DioCacheManager的Dio属性(因为涉及到多个用户,需要切换他们的Cookie以鉴权获取文件图片),但是每当我重新初始化的时候,就会遇到这样一个问题,请教一下开发者应当如何动态切换CacheManager的属性?感谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions