AlertConfig class

Immutable configuration used to initialize the native ZoneNetworkManager alert engine.

There is no bundleId field: the native SDK reads the host app's own application id / bundle id (Android applicationId including any flavor suffix, iOS CFBundleIdentifier). It must match the id registered for the API key.

Constructors

AlertConfig({required String baseUrl, required String apiKeyId, required String apiKey, required String vehicleId, VehicleType vehicleType = VehicleType.car, int seats = 4, int weight = 1500})
const

Properties

apiKey → String
API key secret issued by MapZone.
final
apiKeyId → String
API key identifier issued by MapZone.
final
baseUrl → String
Speed-alert backend base URL, e.g. https://driving.map.zone.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seats → int
Number of seats (used for some vehicle classes).
final
vehicleId → String
Vehicle identifier registered with MapZone.
final
vehicleType → VehicleType
Vehicle type — affects which speed limits apply.
final
weight → int
Vehicle weight in kilograms. Kept as int on the Dart/host side; the Android bridge casts it to Double for the native configure.
final

Methods

copyWith({String? baseUrl, String? apiKeyId, String? apiKey, String? vehicleId, VehicleType? vehicleType, int? seats, int? weight}) → AlertConfig
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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