'hive store different types of data in one Box

I am using flutter and hive to store data. I have created Boxes for several different primitive types (list - map - string).

I read the docs but it's still unclear.

Is it possible to store different types in one Box? Currently I am using different boxes to hold different types.

i want to store list map and strings in a single box



Solution 1:[1]

yes you can, its mentioned in their documentation here

var box = Hive.box('myBox');

box.put('name', 'Paul');

box.put('friends', ['Dave', 'Simon', 'Lisa']);

box.put(123, 'test');

box.putAll({'key1': 'value1', 42: 'life'});

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 omar hatem