lset method

Future<bool> lset(
  1. String key,
  2. int index,
  3. Object value
)

Sets the list element at index to value. For more information on the index argument, see LINDEX.

False is returned for out of range indexes.

Implementation

Future<bool> lset(String key, int index, Object value) async {
  final result = (await tier1.lset(key, index, value));
  return result.handleAs<bool>(
    simple: (_) => true,
    error: (_) => false,
  );
}