AppDNAEnvironment class
AppDNAEnvironment — runtime config the SDK negotiates at boot time. Phase 0.1 demo DTO; serves as the canonical small example for codegen mechanism proof.
Constructors
-
AppDNAEnvironment({required String apiBase, required String configBase, required String eventsBase, required String sdkVersion, required bool isDev, double? rolloutPercentage, required AppDNAEnvironmentRegion region, required List<
String> featureFlags}) -
const
-
AppDNAEnvironment.fromMap(Map<
String, dynamic> map) -
factory
Properties
- apiBase → String
-
Base URL for the AppDNA REST API.
final
- configBase → String
-
Base URL for SDK config (Firestore / proxy).
final
- eventsBase → String
-
Base URL for the event-ingestion endpoint.
final
-
featureFlags
→ List<
String> -
Active server-resolved feature-flag keys for this device.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDev → bool
-
True when SDK is initialized in dev mode.
final
- region → AppDNAEnvironmentRegion
-
Data-residency region the SDK is bound to.
final
- rolloutPercentage → double?
-
Optional gradual-rollout cap; 0-100, undefined = full rollout.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdkVersion → String
-
Semver version string of the SDK build.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited