ParseFileBase constructor

ParseFileBase({
  1. required String name,
  2. String? url,
  3. bool? debug,
  4. ParseClient? client,
  5. bool? autoSendSessionId,
})

Creates a new file

{https://docs.parseplatform.org/rest/guide/#files/}

Implementation

ParseFileBase(
    {required String name,
    String? url,
    bool? debug,
    ParseClient? client,
    bool? autoSendSessionId})
    : super(keyFileClassname,
          debug: debug,
          autoSendSessionId: autoSendSessionId,
          client: client) {
  _path = '/files/$name';
  this.name = name;
  if (url != null) this.url = url;
}