dartin icon indicating copy to clipboard operation
dartin copied to clipboard

let param type to be public

Open windrunner414 opened this issue 5 years ago • 3 comments

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)

windrunner414 avatar Dec 31 '19 05:12 windrunner414

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

ditclear avatar Jan 01 '20 14:01 ditclear

@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

windrunner414 avatar Jan 02 '20 06:01 windrunner414

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

ditclear avatar Jan 03 '20 02:01 ditclear