InfriaOptions class

Options configuration model for initializing INFRIA SDK across multiple platforms.

Designed with a Developer Experience (DX) equivalent to FlutterFire's FirebaseOptions. Can be auto-generated using the infria init CLI tool into lib/infria_options.dart.

Annotations

Constructors

InfriaOptions({required String projectId, required String apiKey, String baseUrl = 'https://api.infria.dev/v1', Duration timeout = const Duration(seconds: 30), Map<String, String>? customHeaders})
Creates an InfriaOptions instance.
const
InfriaOptions.fromJson(Map<String, dynamic> json)
Deserializes InfriaOptions from a JSON map.
factory

Properties

apiKey String
Public Client API Key (inf_pub_xxx).
final
baseUrl String
Base URL of the INFRIA AI runtime gateway (defaults to https://api.infria.dev/v1).
final
customHeaders Map<String, String>?
Optional custom HTTP headers injected into every runtime request.
final
hashCode int
The hash code for this object.
no setteroverride
projectId String
Unique project identifier on INFRIA Web Console.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
HTTP network request timeout duration.
final

Methods

copyWith({String? projectId, String? apiKey, String? baseUrl, Duration? timeout, Map<String, String>? customHeaders}) InfriaOptions
Creates a copy of this options instance with updated fields.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toConfig() InfriaConfig
Converts this InfriaOptions instance into an InfriaConfig.
toJson() Map<String, dynamic>
Serializes InfriaOptions to a JSON map.
toString() String
A string representation of this object.
override

Operators

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