addToCollection<T> method

dynamic addToCollection<T>(
  1. dynamic value, {
  2. bool allowDuplicates = true,
})

Add a value to a collection in NyStorage You can also set allowDuplicates to false to prevent duplicates

Implementation

addToCollection<T>(dynamic value, {bool allowDuplicates = true}) async {
  return await NyStorage.addToCollection<T>(this,
      item: value, allowDuplicates: allowDuplicates);
}