saveMetadata method

  1. @override
Future<void> saveMetadata(
  1. Metadata metadata
)
override

Implementation

@override
Future<void> saveMetadata(Metadata metadata) async {
  final startTime = DateTime.now();
  isar_ds.isar.write((isar) {
    isar.dbMetadatas.put(DbMetadata.fromMetadata(metadata));
  });
  final endTime = DateTime.now();
  final duration = endTime.difference(startTime);
  Logger.log.t("SAVED Metadata took ${duration.inMilliseconds} ms");
}