clear method

  1. @override
Future<void> clear()
override

Remove all data in this collection and reset the auto increment value.

Implementation

@override
Future<void> clear() {
  return _spanHelper.asyncWrapInSpan(
    'clear',
    () {
      return _isarCollection.clear();
    },
    dbName: _dbName,
    collectionName: name,
  );
}