I have searched into this topic a lot?! but couldn't find any proper answer ?
Similar kind of answer has been provided in this question Passing custom object through method channel flutter
but answers are of no help.
If anyone could tell the proper way to pass custom object like USER or EMPLOYEE from flutter to android and back from android to flutter that would serve my purpose.
Thanks.
No you can't, and thank Google it is not possible, the more abstract data is the more portable it gets.
You have to Serialize your objects and deserialize inside your native code (Kotlin/Java/Objective-C/Swift)
Using Map or bytes or String or generic List, etc
Everything about platform channel data types is explained here
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.