DirectusCore class

Implementers

Constructors

DirectusCore(String url, {required DirectusStorage storage, Dio? client, String? key})
Constructor with all provided services.

Properties

activity → ActivityHandler
Activity
latefinal
auth → AuthHandler
Auth
latefinal
client → Dio
Dio client used for HTTP requests.
final
collections → CollectionsHandler
Collections
latefinal
custom → Dio
Use client instead. This is the same as client, only more descriptive name.
no setter
fields → FieldsHandler
Fields
latefinal
files → FilesHandler
Files
latefinal
folders → FoldersHandler
Folders
latefinal
hashCode int
The hash code for this object.
no setterinherited
key String?
Used for differentiating between multiple instances.
final
permissions → PermissionsHandler
Permissions
latefinal
presets → PresetsHandler
Presets
latefinal
relations → RelationsHandler
Relations
latefinal
revisions → RevisionsHandler
Revisions
latefinal
roles → RolesHandler
Roles
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server → ServerHandler
Server
latefinal
settings → SettingsHandler
Settings
latefinal
users → UsersHandler
Users
latefinal
utils → UtilsHandler
Utils
latefinal

Methods

init() Future<DirectusCore>
Initialize SDK.
items(String collection) → ItemsHandler<Map<String, dynamic>>
Items
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
typedItems<T>(String collection, {required ItemsConverter<T> converter}) → ItemsHandler<T>
Get items from API with strong typings.

Operators

operator ==(Object other) bool
The equality operator.
inherited