Reputation: 147
I would like to get a document from firebase and find out the document fields type. for example field Name datatype String, field Age datatype int
How can I do that?
Thank you!
Upvotes: 0
Views: 153
Reputation: 495
You can check each variable type as follow:
print(foo.runtimeType);
Upvotes: 1