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<User>(
  instance: this,
  withJson: toMetaJson(),
  disk: disk ?? this.disk,
);