update method

Future update({
  1. required String serviceName,
  2. required String objectId,
  3. required Map<String, dynamic> data,
  4. Map<String, dynamic> params = const {},
})

EMIT update serviceName

Update a ressource

If no error occured, you will get exactly feathersjs's data format

Otherwise, an exception of type FeatherJsError will be raised

Use FeatherJsErrorType.{ERROR} to known what happen

Uploading file ?: Use rest client, socketio client cannot upload file

Implementation

Future<dynamic> update(
    {required String serviceName,
    required String objectId,
    required Map<String, dynamic> data,
    Map<String, dynamic> params = const {}}) {
  return this.scketio.update(
      serviceName: serviceName,
      objectId: objectId,
      data: data,
      params: params);
}