AdministrativeRulesLoader class abstract

Provides the abstract class for the access to the administrative rules available for a country or a state in the local OCM map.

Please be aware that the methods within this classload map data synchronously. In the event of absent data in the disk cache, the data will be retrieved from the remote server. To mitigate the potential freezing of the calling thread, it is advisable to proactively prefetch map data around the working area.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

Constructors

AdministrativeRulesLoader()
Creates a new instance of this class.
factory
AdministrativeRulesLoader.withEngine(SDKNativeEngine sdkEngine)
Creates a new instance of this class.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAdministrativeRules(CountryCode countryCode, String? stateCode) AdministrativeRules
Synchronously load the administrative rules for the specified country and state.
getStateCodes(CountryCode countryCode) → List<String>
Synchronously loads the list of state codes from a specified country for which administrative rules are availabe.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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