FileService class
The service that handles the File APIs.
Usually shouldn't be initialized manually and instead PocketBase.files should be used.
Constructors
- FileService(PocketBase client)
Properties
- client → PocketBase
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getToken(
{Map< String, dynamic> body = const {}, Map<String, dynamic> query = const {}, Map<String, String> headers = const {}}) → Future<String> - Requests a new private file access token for the current auth model.
-
getUrl(
RecordModel record, String filename, {String? thumb, String? token, bool? download, Map< String, dynamic> query = const {}}) → Uri - Builds and returns an absolute record file url.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited