update method

  1. @override
Future<bool> update({
  1. Disk? disk,
})
override

Updates the current instance with new data.

Implementation

@override
Future<bool> update({Disk? disk}) async =>
    await Model.updateInstance<Session>(
      instance: this,
      disk: disk ?? this.disk,
      withJson: toMetaJson(),
    );