Saving a single model in sqflite is quite easy. I am trying to save the nested Model in sqfilte. Model class, table creation query, and error is explained below. Any help will be appreciated to save such nested models:
Invalid argument {name: Akon, url: https://music/Akon} with type _InternalLinkedHashMap<String, dynamic>.
Only num, String, and Uint8List are supported.
Invalid argument [{#text: https:5d72a77281bec2f7ddea87c48.png, size: small}] with
type List<Map<String, dynamic>>. The only num, String, and Uint8List are supported.
Saving a single model in sqflite is quite easy. I am trying to save the nested Model in sqfilte. Model class, table creation query, and error is explained below. Any help will be appreciated to save such nested models:
Main Model:
Sub-model:
Function to store image into sqflite:
Error:
I have posted the question on stackoverflow https://stackoverflow.com/q/68471462/12932518