Read constructor

Read({
  1. Request? request,
  2. required String collection,
  3. String? identifier,
  4. Query? query,
  5. AccessToken? customToken,
})

Implementation

Read(
    {Request? request,
    required String collection,
    String? identifier,
    Query? query,
    AccessToken? customToken})
    : assert(identifier != null || query != null),
      super(
          request: request?..token = customToken,
          access: Access(
              type: AccessType.read,
              collection: collection,
              identifier: identifier,
              query: query));