ditclear / dartin

A pragmatic lightweight dependency injection framework for Flutter developers.
https://medium.com/@ditclear/dartin-a-pragmatic-lightweight-dependency-injection-framework-for-flutter-developers-bbb57c47b31f
BSD 3-Clause "New" or "Revised" License
43 stars 4 forks source link

let param type to be public #2

Open windrunner414 opened 4 years ago

windrunner414 commented 4 years ago

the param type is private _ParameterList, it cause i can't specify type annotation, dart analysis will report this warning (I use flutter project analysis_option)

ditclear commented 4 years ago

Using list is inspired by koin, of course using map is also possible. @windrunner414

windrunner414 commented 4 years ago

@ditclear I use code generator to use it easier and named parameters but _ParameterList is private, I can't specify type annotation like single(({ParameterList param})=>x()) Although it won't cause any problems, but dart analysis server report a warning if u open related option I think ParameterList should be public

ditclear commented 4 years ago

@windrunner414
You can copy the dartin.dart file and make _ParameterList public