Update constructor

Update({
  1. Request? request,
  2. required String collection,
  3. Query? query,
  4. String? identifier,
  5. required Map<String, dynamic> data,
  6. AccessToken? customToken,
})

Implementation

Update(
    {Request? request,
    required String collection,
    Query? query,
    String? identifier,
    required Map<String, dynamic> data,
    AccessToken? customToken})
    : assert(identifier != null || query != null),
      super(
          request: request?..token = customToken,
          access: Access(
              type: AccessType.update, collection: collection, data: data));