Directus class

Inheritance

Constructors

Directus(String url, {Dio? client, String? key, DirectusStorage? storage})

Properties

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

Methods

init() Future<DirectusCore>
Initialize SDK.
inherited
items(String collection) → ItemsHandler<Map<String, dynamic>>
Items
inherited
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.
inherited

Operators

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