Breadcrumbs

Dart SDK

The Daktela Dart SDK is open-source and published on the official Dart package repository.

Getting Started
Installation
To add the SDK to your project, run the following command in your terminal:
For Dart projects:

dart pub add daktela_connector

For Flutter projects:

flutter pub add daktela_connector

Implementation & Usage

The Dart SDK is built with strong typing to ensure data consistency across your application. For comprehensive instructions on how to initialize the connector and interact with Daktela modules, please refer to the README.md file in the official GitHub repository.
The documentation in the repository covers:

  • Initialization: How to set up the DaktelaConnector with your instance URL and API Access Token.

  • Data Models: Utilizing built-in classes for Contacts, Activities, and Tickets.

  • Requests: Performing asynchronous CRUD operations.

  • Filtering: Using the structured filter system for precise data retrieval.

Best Practices

  • Secure Token Storage: In Flutter applications, never hardcode your API Access Token. Use secure storage solutions (like flutter_secure_storage) to keep credentials safe on the device.

  • Handling Streams and Futures: Since Dart is inherently asynchronous, ensure you handle Future errors and Stream subscriptions properly to avoid memory leaks or unhandled exceptions.

  • Environment Configuration: Use --dart-define or environment-specific config files to manage different Daktela instance URLs (e.g., sandbox vs. production).