简体   繁体   中英

is double and Double are different thing in dart and if it is can anyone explain me

as we can see this gives an error that is telling that 0.0 is double that can't assigned to Double datatype

then i tried Double as datatype and my code worked fine. but i don't understand what is going on here so can any one tell me what is going on here?

Double comes from dart ffi,

Represents a native 64 bit double in C. Double is not constructible in the Dart code and serves purely as marker in type signatures.

you mostly don't want it, use double instead.

Find more about numbers in dart and dart-ffi/Double

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM