kiwi icon indicating copy to clipboard operation
kiwi copied to clipboard

Class could not be registered correctly even when defaults are specified

Open vanlooverenkoen opened this issue 2 years ago • 0 comments

Failed to resolve `IOSOptions`:
The type `IOSOptions` was not registered
Make sure `IOSOptions` is added to your KiwiContainer and rerun build_runner build
(If you are using the kiwi_generator)
When using Flutter, most of the time a hot restart is required to setup the KiwiContainer again.

There is probably an issue with default values

const FlutterSecureStorage({
  this.iOptions = IOSOptions.defaultOptions,
  this.aOptions = AndroidOptions.defaultOptions,
  this.lOptions = LinuxOptions.defaultOptions,
  this.wOptions = WindowsOptions.defaultOptions,
  this.webOptions = WebOptions.defaultOptions,
  this.mOptions = MacOsOptions.defaultOptions,
});

vanlooverenkoen avatar Dec 16 '21 10:12 vanlooverenkoen