286_Zeel godhani
286_Zeel godhani

Reputation: 33

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?

Upvotes: 0

Views: 949

Answers (1)

Md. Yeasin Sheikh
Md. Yeasin Sheikh

Reputation: 63669

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

Upvotes: 3

Related Questions