我必须向我的所有 Api 添加标头。有人告诉我为此使用 http 拦截器。但我无法理解如何做到这一点,因为我是颤振的新手。谁能帮我举个例子吗?
api http interceptor flutter
api ×1
flutter ×1
http ×1
interceptor ×1