put method

Future<int> put(
  1. OBJ object, {
  2. bool replaceOnConflict = false,
})

Insert or update an object and returns the assigned id.

Implementation

Future<int> put(OBJ object, {bool replaceOnConflict = false}) =>
    putAll([object]).then((ids) => ids[0]);