flint_dart library

Support for doing something awesome.

More dartdocs go here.

Classes

AIMessage
AIProvider
Base AI provider — stores conversation history and context memory
CacheConfig
Configuration for response caching
CachedResponse<T>
Cached response data
CacheStore
Cache storage abstraction
Column
Describes a column in a database table.
Default
ExceptionMiddleware
Flint
The core application class for the Flint Dart framework.
FlintClient
A powerful HTTP client for making requests to REST APIs with support for JSON, file uploads/downloads, progress tracking, caching, and retries.
FlintEnv
A lightweight environment variable loader for Dart applications.
FlintJwt
FlintResponse<T>
Represents a response from the Flint client.
FlintWebSocket
Represents a connected WebSocket client
FlintWebSocketClient
ForeignKey
Represents a foreign key constraint between tables.
GeminiProvider
Hashing
HuggingFaceProvider
Index
Represents an index on one or more columns in a table.
LoggerMiddleware
Mail
MailConfig
MailTemplate
MemoryCacheStore
In-memory cache implementation
Middleware
Model<T extends Model<T>>
MySQLDialect
---------------- MySQL ----------------
OpenAIProvider
PostgresDialect
---------------- Postgres ----------------
Request
Enhanced HTTP request wrapper with comprehensive parsing, validation, and session management.
Response
A wrapper around HttpResponse for sending HTTP responses in Flint Dart.
RetryConfig
Route
Router
SQLDialect
Base dialect interface
Table
Represents a database table schema, including its columns, indexes, and foreign keys.
UploadedFile
Represents a single uploaded file with metadata and content stream.
Validator
A utility class for validating input data against a set of rules.
WebSocketManager

Enums

ColumnType
Enum representing supported column types for a table schema. Enum representing supported column types for a table schema.
FlintResponseType
Enum representing the type of response returned by the Flint client.
HashingAlgorithm
RespondType
Supported response types for automatic content handling.
WebSocketConnectionState

Extensions

ColumnSQL on Column
---------------- Column helpers ----------------
FirstWhereOrNullExtension on Iterable<T>
FlintClientFileSaver on FlintClient
FutureModelListExtension on Future<List<T>>
ModelListExtension on List<T>
OAuthResponse on Response
TableSQL on Table
---------------- Dispatcher ----------------

Properties

wsManager WebSocketManager
final

Functions

getTableSchema(String tableName) Future<Table?>
Helper function to get table schema
parseInt(dynamic value) int?
parseMySQLType(dynamic rawType) String
runTableRegistry(List<Table> tables, [dynamic _, SendPort? sendPort]) → void
Runs the table registry process inside a Dart isolate.

Typedefs

ErrorHandler = void Function(FlintError error)
Callback type for handling errors returned by FlintClient.
Handler = FutureOr<Response?> Function(Request req, Response res)
JsonParser<T> = T Function(dynamic json)
Parses JSON responses into a strongly-typed object T.
ProgressCallback = void Function(int sent, int total)
Callback type to track upload or download progress. sent is the number of bytes sent or received. total is the total number of bytes.
RequestDoneCallback<T> = void Function(FlintResponse<T> response, FlintError? error)
RequestInterceptor = Future<void> Function(HttpClientRequest request)
Intercepts HTTP requests before they are sent.
ResponseInterceptor = Future<void> Function(HttpClientResponse response)
Intercepts HTTP responses after they are received.
RetryEvaluator = bool Function(FlintError error, int attempt)
Configuration for request retries

Exceptions / Errors

FlintError
Represents an error returned by the Flint client.
ValidationException
An exception that is thrown when validation fails.